Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Annex60.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset") translateModel(Annex60.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.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.002/0.002, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002741/0.002741, allocations: 196.9 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.631/1.631, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4196/0.4196, allocations: 54.95 MB / 324.7 MB, free: 15.96 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 75.89 kB / 395.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1473, allocations: 59.59 MB / 454.9 MB, free: 148 kB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Utilities.Math.Examples.IntegratorWithReset): time 0.2273/0.3746, allocations: 1.775 MB / 456.7 MB, free: 38.83 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009166/0.3756, allocations: 0.5864 MB / 457.3 MB, free: 38.63 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.3757, allocations: 4.625 kB / 457.3 MB, free: 38.63 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001538/0.3759, allocations: 22.22 kB / 457.3 MB, free: 38.63 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.432e-05/0.376, allocations: 29.69 kB / 457.3 MB, free: 38.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000216/0.3762, allocations: 62.3 kB / 457.4 MB, free: 38.63 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002079/0.3764, allocations: 174.5 kB / 457.6 MB, free: 38.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001701/0.3766, allocations: 52.14 kB / 457.6 MB, free: 38.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.943e-05/0.3767, allocations: 49.44 kB / 457.7 MB, free: 38.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.594e-05/0.3768, allocations: 67.42 kB / 457.7 MB, free: 38.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.976e-05/0.3768, allocations: 11.31 kB / 457.7 MB, free: 38.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.111e-05/0.3768, allocations: 10.44 kB / 457.8 MB, free: 38.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.548e-05/0.3769, allocations: 29.23 kB / 457.8 MB, free: 38.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.577e-05/0.377, allocations: 64.11 kB / 457.8 MB, free: 38.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001582/0.3771, allocations: 131.6 kB / 458 MB, free: 38.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3771, allocations: 0 / 458 MB, free: 38.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3771, allocations: 1.094 kB / 458 MB, free: 38.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.3772, allocations: 3.094 kB / 458 MB, free: 38.53 MB / 382.1 MB 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.0006381/0.3778, allocations: 468.1 kB / 458.4 MB, free: 38.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.3778, allocations: 9.469 kB / 458.4 MB, free: 38.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.997e-05/0.3779, allocations: 21.09 kB / 458.5 MB, free: 38.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002101/0.3781, allocations: 235.1 kB / 458.7 MB, free: 37.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.3781, allocations: 9.375 kB / 458.7 MB, free: 37.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.972e-05/0.3782, allocations: 23.75 kB / 458.7 MB, free: 37.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002663/0.3785, allocations: 143.9 kB / 458.9 MB, free: 37.83 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.3785, allocations: 0 / 458.9 MB, free: 37.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.3785, allocations: 6.5 kB / 458.9 MB, free: 37.83 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.3785, allocations: 2.594 kB / 458.9 MB, free: 37.83 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000223/0.3787, allocations: 75.81 kB / 459 MB, free: 37.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007594/0.3795, allocations: 0.7361 MB / 459.7 MB, free: 37.22 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001476/0.3797, allocations: 51.78 kB / 459.7 MB, free: 37.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.3798, allocations: 36.61 kB / 459.8 MB, free: 37.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.3798, allocations: 1.156 kB / 459.8 MB, free: 37.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002683/0.3801, allocations: 122.4 kB / 459.9 MB, free: 37.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.273e-06/0.3801, allocations: 1.875 kB / 459.9 MB, free: 37.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.000456/0.3806, allocations: 167.8 kB / 460.1 MB, free: 37.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.806e-05/0.3806, allocations: 131.5 kB / 460.2 MB, free: 36.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.3808, allocations: 196.9 kB / 460.4 MB, free: 36.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.3808, allocations: 29.11 kB / 460.4 MB, free: 36.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.058e-05/0.3809, allocations: 134.6 kB / 460.5 MB, free: 36.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.763e-05/0.3809, allocations: 36.36 kB / 460.6 MB, free: 36.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.883e-05/0.381, allocations: 47.77 kB / 460.6 MB, free: 36.64 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.058e-05/0.381, allocations: 329.6 kB / 460.9 MB, free: 36.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.3811, allocations: 44.44 kB / 461 MB, free: 36.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.3813, allocations: 139.8 kB / 461.1 MB, free: 36.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.3816, allocations: 207.5 kB / 461.3 MB, free: 36.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3816, allocations: 0 / 461.3 MB, free: 36.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003423/0.3819, allocations: 211.6 kB / 461.5 MB, free: 36.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.3819, allocations: 5.812 kB / 461.5 MB, free: 36.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.382, allocations: 5.625 kB / 461.5 MB, free: 36.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.382, allocations: 6.5 kB / 461.6 MB, free: 36.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.3821, allocations: 36.97 kB / 461.6 MB, free: 36.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.3821, allocations: 5.797 kB / 461.6 MB, free: 36.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001318/0.3823, allocations: 25.06 kB / 461.6 MB, free: 36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.3823, allocations: 18.72 kB / 461.6 MB, free: 36 MB / 382.1 MB 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.655e-05/0.3824, allocations: 136 kB / 461.8 MB, free: 35.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.3824, allocations: 16.56 kB / 461.8 MB, free: 35.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.663e-05/0.3825, allocations: 22.02 kB / 461.8 MB, free: 35.87 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3825, allocations: 3.125 kB / 461.8 MB, free: 35.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.3825, allocations: 5.469 kB / 461.8 MB, free: 35.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.3825, allocations: 0 / 461.8 MB, free: 35.87 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006198/0.3831, allocations: 0.5111 MB / 462.3 MB, free: 35.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3831, allocations: 4 kB / 462.3 MB, free: 35.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.3832, allocations: 16.59 kB / 462.3 MB, free: 35.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.3833, allocations: 3.75 kB / 462.4 MB, free: 35.49 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.3833, allocations: 7.125 kB / 462.4 MB, free: 35.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.3833, allocations: 2.656 kB / 462.4 MB, free: 35.49 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3833, allocations: 5.156 kB / 462.4 MB, free: 35.49 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004612/0.3838, allocations: 359.6 kB / 462.7 MB, free: 35.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.773e-05/0.3838, allocations: 94.52 kB / 462.8 MB, free: 35.15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.831e-05/0.3838, allocations: 11.69 kB / 462.8 MB, free: 35.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000157/0.384, allocations: 9.312 kB / 462.8 MB, free: 35.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.804e-05/0.3841, allocations: 18.41 kB / 462.8 MB, free: 35.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.448e-06/0.3841, allocations: 4.516 kB / 462.9 MB, free: 35.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.822e-05/0.3842, allocations: 145.6 kB / 463 MB, free: 35.06 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3842, allocations: 0 / 463 MB, free: 35.06 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003173/0.3845, allocations: 29.59 kB / 463 MB, free: 35.06 MB / 382.1 MB 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.0001028/0.3846, allocations: 100.8 kB / 463.1 MB, free: 34.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003204/0.3849, allocations: 124.8 kB / 463.2 MB, free: 34.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.385, allocations: 0 / 463.2 MB, free: 34.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.3851, allocations: 51.48 kB / 463.3 MB, free: 34.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005219/0.3856, allocations: 71 kB / 463.4 MB, free: 34.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004708/0.3861, allocations: 354.8 kB / 463.7 MB, free: 34.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001306/0.3862, allocations: 0.7207 MB / 464.4 MB, free: 34.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.445e-05/0.3863, allocations: 20.28 kB / 464.5 MB, free: 34.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.037e-05/0.3864, allocations: 22.91 kB / 464.5 MB, free: 34.03 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3864, allocations: 0 / 464.5 MB, free: 34.03 MB / 382.1 MB Notification: Performance of Templates: time 0.004267/0.3906, allocations: 2.027 MB / 466.5 MB, free: 33.89 MB / 382.1 MB make -j1 -f Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.sim & ./Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)