Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset") translateModel(IDEAS.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006023/0.006023, allocations: 100.3 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 190.4 kB / 16.67 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.951/0.951, allocations: 135.1 MB / 425.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 59.89 kB / 0.5856 GB, free: 3.34 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4516/0.4528, allocations: 80.92 MB / 0.6646 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002452/0.4553, allocations: 1.804 MB / 0.6664 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008038/0.4561, allocations: 0.5398 MB / 0.6669 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.224e-05/0.4563, allocations: 6.469 kB / 0.6669 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.4564, allocations: 22.11 kB / 0.667 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.186e-05/0.4565, allocations: 30.39 kB / 0.667 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002/0.4567, allocations: 73.12 kB / 0.6671 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001829/0.4569, allocations: 171.9 kB / 0.6672 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.457, allocations: 50.33 kB / 0.6673 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.294e-05/0.4571, allocations: 62.8 kB / 0.6673 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.452e-05/0.4572, allocations: 62.14 kB / 0.6674 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.341e-05/0.4572, allocations: 9.031 kB / 0.6674 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.869e-05/0.4572, allocations: 10.38 kB / 0.6674 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.922e-05/0.4573, allocations: 29.55 kB / 0.6674 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.488e-05/0.4573, allocations: 66.91 kB / 0.6675 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001462/0.4575, allocations: 142.8 kB / 0.6676 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4575, allocations: 0 / 0.6676 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.442e-06/0.4575, allocations: 0 / 0.6676 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.4575, allocations: 0 / 0.6676 GB, free: 5.199 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005848/0.4581, allocations: 475.6 kB / 0.6681 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.4581, allocations: 9.781 kB / 0.6681 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.365e-05/0.4582, allocations: 17.94 kB / 0.6681 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002319/0.4584, allocations: 232.8 kB / 0.6683 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.4584, allocations: 8.375 kB / 0.6684 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.448e-05/0.4585, allocations: 16.83 kB / 0.6684 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002531/0.4587, allocations: 161.9 kB / 0.6685 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.4588, allocations: 0 / 0.6685 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.536e-05/0.4588, allocations: 9.188 kB / 0.6685 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.4588, allocations: 2.906 kB / 0.6685 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002135/0.459, allocations: 74.06 kB / 0.6686 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007436/0.4598, allocations: 0.731 MB / 0.6693 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001321/0.4599, allocations: 49.89 kB / 0.6694 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.822e-05/0.46, allocations: 39.95 kB / 0.6694 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.46, allocations: 1.188 kB / 0.6694 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001848/0.4602, allocations: 125 kB / 0.6695 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.553e-06/0.4602, allocations: 0 / 0.6695 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004333/0.4607, allocations: 164.8 kB / 0.6697 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.4607, allocations: 130.9 kB / 0.6698 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.4609, allocations: 204.7 kB / 0.67 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.4609, allocations: 34.81 kB / 0.67 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.455e-05/0.4609, allocations: 136.5 kB / 0.6702 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.477e-05/0.461, allocations: 32.67 kB / 0.6702 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.211e-05/0.461, allocations: 39.89 kB / 0.6702 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.808e-05/0.4611, allocations: 327 kB / 0.6705 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.4612, allocations: 38.12 kB / 0.6706 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.4613, allocations: 150.1 kB / 0.6707 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000238/0.4616, allocations: 209.1 kB / 0.6709 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.4616, allocations: 1.094 kB / 0.6709 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003286/0.4619, allocations: 206.1 kB / 0.6711 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.462, allocations: 9.875 kB / 0.6711 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.462, allocations: 3.719 kB / 0.6711 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.462, allocations: 4.219 kB / 0.6711 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.4621, allocations: 35.91 kB / 0.6712 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.4621, allocations: 9.969 kB / 0.6712 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001269/0.4623, allocations: 27 kB / 0.6712 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/0.4623, allocations: 9.25 kB / 0.6712 GB, free: 1.91 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.755e-05/0.4624, allocations: 147.1 kB / 0.6714 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.845e-05/0.4624, allocations: 24.8 kB / 0.6714 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.944e-05/0.4625, allocations: 18.16 kB / 0.6714 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.4625, allocations: 2.75 kB / 0.6714 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.4625, allocations: 1.406 kB / 0.6714 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.4625, allocations: 5.266 kB / 0.6714 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005877/0.4631, allocations: 0.5097 MB / 0.6719 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.4631, allocations: 1.125 kB / 0.6719 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.4632, allocations: 16.55 kB / 0.6719 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.4632, allocations: 9.078 kB / 0.6719 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.4632, allocations: 7 kB / 0.6719 GB, free: 1.234 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.4632, allocations: 9.125 kB / 0.6719 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.4632, allocations: 5.531 kB / 0.672 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004013/0.4636, allocations: 353.3 kB / 0.6723 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.501e-05/0.4637, allocations: 93.77 kB / 0.6724 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.909e-05/0.4637, allocations: 6.656 kB / 0.6724 GB, free: 0.8242 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.4639, allocations: 19.03 kB / 0.6724 GB, free: 0.8125 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.237e-05/0.464, allocations: 20.72 kB / 0.6724 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.729e-06/0.464, allocations: 5.406 kB / 0.6724 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.507e-05/0.4641, allocations: 136.7 kB / 0.6726 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4641, allocations: 1.375 kB / 0.6726 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003231/0.4644, allocations: 25.88 kB / 0.6726 GB, free: 0.6914 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001007/0.4645, allocations: 102.4 kB / 0.6727 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002898/0.4648, allocations: 117.2 kB / 0.6728 GB, free: 0.5508 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.4648, allocations: 0 / 0.6728 GB, free: 0.5508 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.4649, allocations: 49.44 kB / 0.6728 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005324/0.4655, allocations: 66.52 kB / 0.6729 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005246/0.466, allocations: 346 kB / 0.6732 GB, free: 228 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.4663, allocations: 0.7242 MB / 0.6739 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.915e-05/0.4664, allocations: 23.89 kB / 0.674 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.669e-05/0.4664, allocations: 17.59 kB / 0.674 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of SimCode: time 1.91e-07/0.4664, allocations: 0 / 0.674 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of Templates: time 0.004822/0.4713, allocations: 2.024 MB / 0.676 GB, free: 14.49 MB / 0.5137 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)