Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.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.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Annex60.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01084/0.01084, allocations: 96.98 kB / 15.73 MB, free: 5.988 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.001766/0.001766, allocations: 187.6 kB / 16.67 MB, free: 5.918 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.712/1.712, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4609/0.4609, allocations: 54.93 MB / 324.8 MB, free: 128 kB / 254.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.001731/0.001731, allocations: 66.72 kB / 456.3 MB, free: 38.17 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1578/0.1595, allocations: 59.59 MB / 0.5038 GB, free: 9.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Controls.Continuous.Examples.LimPIDWithReset): time 0.00812/0.1677, allocations: 4.123 MB / 0.5078 GB, free: 6.363 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004877/0.1726, allocations: 1.44 MB / 0.5092 GB, free: 5.172 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001168/0.1738, allocations: 25.34 kB / 0.5092 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006627/0.1746, allocations: 128.4 kB / 0.5093 GB, free: 5.047 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001043/0.1756, allocations: 174.9 kB / 0.5095 GB, free: 4.891 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001655/0.1773, allocations: 469.4 kB / 0.51 GB, free: 4.516 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001584/0.1789, allocations: 0.9918 MB / 0.5109 GB, free: 3.574 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008987/0.1798, allocations: 458.1 kB / 0.5114 GB, free: 3.109 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006482/0.1805, allocations: 334.7 kB / 0.5117 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006615/0.1812, allocations: 342.3 kB / 0.512 GB, free: 2.445 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002267/0.1814, allocations: 92 kB / 0.5121 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002223/0.1817, allocations: 92 kB / 0.5122 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.1819, allocations: 183.4 kB / 0.5124 GB, free: 2.086 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005094/0.1824, allocations: 398 kB / 0.5127 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001447/0.1839, allocations: 1.078 MB / 0.5138 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1839, allocations: 4 kB / 0.5138 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.1839, allocations: 0 / 0.5138 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.741e-05/0.184, allocations: 0 / 0.5138 GB, free: 0.6094 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: 148 * Number of variables: 148 Notification: Performance of Generate backend data structure: time 0.003121/0.1871, allocations: 1.111 MB / 0.5149 GB, free: 15.44 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/0.1872, allocations: 8.031 kB / 0.5149 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002466/0.1874, allocations: 88.42 kB / 0.515 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001966/0.1894, allocations: 0.5811 MB / 0.5155 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.736e-05/0.1895, allocations: 45.69 kB / 0.5156 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001885/0.1897, allocations: 64.12 kB / 0.5156 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002185/0.1919, allocations: 0.6153 MB / 0.5162 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.323e-05/0.192, allocations: 7.953 kB / 0.5163 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/0.1921, allocations: 24 kB / 0.5163 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-05/0.1922, allocations: 16 kB / 0.5163 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001952/0.1941, allocations: 465 kB / 0.5167 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005431/0.1996, allocations: 2.017 MB / 0.5187 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.2012, allocations: 448.9 kB / 0.5191 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007758/0.202, allocations: 242.1 kB / 0.5194 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.033e-05/0.2021, allocations: 4.438 kB / 0.5194 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009001/0.203, allocations: 261.3 kB / 0.5196 GB, free: 10.42 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 4.208e-06/0.203, allocations: 0 / 0.5196 GB, free: 10.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002266/0.2053, allocations: 0.5892 MB / 0.5202 GB, free: 9.832 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.304e-05/0.2054, allocations: 63.78 kB / 0.5202 GB, free: 9.758 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009182/0.2063, allocations: 454 kB / 0.5207 GB, free: 9.305 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.382e-05/0.2064, allocations: 33.7 kB / 0.5207 GB, free: 9.266 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003648/0.2068, allocations: 332.9 kB / 0.521 GB, free: 8.934 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002187/0.207, allocations: 182.4 kB / 0.5212 GB, free: 8.754 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/0.2072, allocations: 90.25 kB / 0.5213 GB, free: 8.656 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002249/0.2075, allocations: 370.8 kB / 0.5216 GB, free: 8.285 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006661/0.2082, allocations: 171 kB / 0.5218 GB, free: 8.117 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007222/0.2089, allocations: 257.8 kB / 0.5221 GB, free: 7.836 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001487/0.2104, allocations: 460 kB / 0.5225 GB, free: 7.352 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.2104, allocations: 3.938 kB / 0.5225 GB, free: 7.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001964/0.2124, allocations: 0.5744 MB / 0.5231 GB, free: 6.762 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.394e-05/0.2125, allocations: 33.7 kB / 0.5231 GB, free: 6.723 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.2125, allocations: 0 / 0.5231 GB, free: 6.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.971e-05/0.2125, allocations: 4 kB / 0.5231 GB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008618/0.2134, allocations: 115.8 kB / 0.5232 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.422e-05/0.2135, allocations: 4 kB / 0.5232 GB, free: 6.602 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006604/0.2141, allocations: 67.84 kB / 0.5233 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.236e-05/0.2142, allocations: 16 kB / 0.5233 GB, free: 6.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009257/0.2152, allocations: 321.2 kB / 0.5236 GB, free: 6.199 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006554/0.2158, allocations: 237.8 kB / 0.5238 GB, free: 5.945 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001196/0.2171, allocations: 444 kB / 0.5242 GB, free: 5.477 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.348e-06/0.2171, allocations: 0 / 0.5242 GB, free: 5.477 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization_lambda0): time 0.001708/0.2188, allocations: 0.547 MB / 0.5248 GB, free: 4.918 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.951e-05/0.2189, allocations: 41.94 kB / 0.5248 GB, free: 4.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.2189, allocations: 4 kB / 0.5248 GB, free: 4.867 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.2189, allocations: 4 kB / 0.5248 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007027/0.2196, allocations: 107.8 kB / 0.5249 GB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.182e-05/0.2197, allocations: 4 kB / 0.5249 GB, free: 4.754 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004876/0.2202, allocations: 47.7 kB / 0.525 GB, free: 4.707 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-05/0.2202, allocations: 23.98 kB / 0.525 GB, free: 4.684 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * 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 0.00024/0.2205, allocations: 216.1 kB / 0.5252 GB, free: 4.465 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001466/0.2206, allocations: 55.62 kB / 0.5253 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002182/0.2209, allocations: 69.58 kB / 0.5253 GB, free: 4.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.2209, allocations: 7.938 kB / 0.5253 GB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.2209, allocations: 0 / 0.5253 GB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.427e-06/0.2209, allocations: 0 / 0.5253 GB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003043/0.224, allocations: 1.194 MB / 0.5265 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/0.224, allocations: 4 kB / 0.5265 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008895/0.2249, allocations: 91.89 kB / 0.5266 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.265e-06/0.2249, allocations: 0 / 0.5266 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.116e-05/0.225, allocations: 15.98 kB / 0.5266 GB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.588e-06/0.225, allocations: 0 / 0.5266 GB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.225, allocations: 4 kB / 0.5266 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002355/0.2274, allocations: 0.7653 MB / 0.5274 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003269/0.2278, allocations: 176.6 kB / 0.5275 GB, free: 1.992 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001153/0.2279, allocations: 12 kB / 0.5275 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005206/0.2284, allocations: 23.97 kB / 0.5276 GB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.2286, allocations: 32.39 kB / 0.5276 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-05/0.2287, allocations: 20 kB / 0.5276 GB, free: 1.906 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006044/0.2293, allocations: 314.8 kB / 0.5279 GB, free: 1.602 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2293, allocations: 0 / 0.5279 GB, free: 1.602 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001216/0.2305, allocations: 259.3 kB / 0.5282 GB, free: 1.348 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000206/0.2308, allocations: 107.2 kB / 0.5283 GB, free: 1.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002493/0.2333, allocations: 0.7768 MB / 0.529 GB, free: 444 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.2333, allocations: 0 / 0.529 GB, free: 444 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007451/0.2341, allocations: 215.4 kB / 0.5292 GB, free: 228 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001448/0.2355, allocations: 175.5 kB / 0.5294 GB, free: 64 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004938/0.2405, allocations: 1.379 MB / 0.5307 GB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009386/0.2414, allocations: 0.8903 MB / 0.5316 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006187/0.2421, allocations: 72.64 kB / 0.5317 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002116/0.2423, allocations: 47.42 kB / 0.5317 GB, free: 13.62 MB / 414.1 MB Notification: Performance of SimCode: time 1.042e-06/0.2423, allocations: 4 kB / 0.5317 GB, free: 13.61 MB / 414.1 MB Notification: Performance of Templates: time 0.01791/0.2603, allocations: 6.586 MB / 0.5382 GB, free: 7.082 MB / 414.1 MB make -j1 -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)