Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID.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.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID") translateModel(Annex60.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001622/0.001622, 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.00176/0.00176, allocations: 196.1 kB / 16.53 MB, free: 6.699 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.61/1.61, allocations: 205.1 MB / 222.4 MB, free: 4.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.414/0.414, allocations: 54.95 MB / 324.7 MB, free: 15.99 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.002958/0.002958, allocations: 63.91 kB / 395.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1486, allocations: 59.6 MB / 454.9 MB, free: 208 kB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Controls.Continuous.Examples.LimPID): time 0.27/0.4186, allocations: 3.711 MB / 458.6 MB, free: 37.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002159/0.4208, allocations: 1.411 MB / 460 MB, free: 37.35 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003628/0.4212, allocations: 30.69 kB / 460.1 MB, free: 37.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003292/0.4216, allocations: 127.4 kB / 460.2 MB, free: 37.26 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004759/0.4221, allocations: 180.1 kB / 460.4 MB, free: 37.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001128/0.4232, allocations: 0.6024 MB / 461 MB, free: 37.06 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007931/0.424, allocations: 0.985 MB / 462 MB, free: 36.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005188/0.4245, allocations: 356.8 kB / 462.3 MB, free: 36.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003444/0.4249, allocations: 370.2 kB / 462.7 MB, free: 36.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003151/0.4252, allocations: 359.5 kB / 463 MB, free: 36.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.4253, allocations: 77.91 kB / 463.1 MB, free: 36.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.468e-05/0.4254, allocations: 79.34 kB / 463.2 MB, free: 36.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.4256, allocations: 182.8 kB / 463.4 MB, free: 35.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002347/0.4258, allocations: 384.9 kB / 463.7 MB, free: 35.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006896/0.4265, allocations: 0.8703 MB / 464.6 MB, free: 35.24 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.4265, allocations: 0 / 464.6 MB, free: 35.24 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4265, allocations: 0 / 464.6 MB, free: 35.24 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.4265, allocations: 0 / 464.6 MB, free: 35.24 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001849/0.4284, allocations: 1.198 MB / 465.8 MB, free: 34.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.4284, allocations: 8.75 kB / 465.8 MB, free: 34.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/0.4286, allocations: 96.28 kB / 465.9 MB, free: 34.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007982/0.4294, allocations: 0.6073 MB / 466.5 MB, free: 33.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.4295, allocations: 98.94 kB / 466.6 MB, free: 33.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.573e-05/0.4296, allocations: 59.52 kB / 466.7 MB, free: 33.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009344/0.4305, allocations: 0.6129 MB / 467.3 MB, free: 33.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.4306, allocations: 0 / 467.3 MB, free: 33.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.041e-05/0.4306, allocations: 24.03 kB / 467.3 MB, free: 33.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.4306, allocations: 15.59 kB / 467.3 MB, free: 33.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008813/0.4315, allocations: 430.7 kB / 467.7 MB, free: 33.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00238/0.4339, allocations: 2.135 MB / 469.9 MB, free: 31.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.435, allocations: 496.6 kB / 470.4 MB, free: 31.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004067/0.4354, allocations: 223.6 kB / 470.6 MB, free: 31.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.984e-05/0.4355, allocations: 5.859 kB / 470.6 MB, free: 31.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006424/0.4361, allocations: 286.8 kB / 470.9 MB, free: 31.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=45): time 1.834e-06/0.4361, allocations: 0 / 470.9 MB, free: 31.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.001371/0.4375, allocations: 0.6107 MB / 471.5 MB, free: 31.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/0.4376, allocations: 87.8 kB / 471.6 MB, free: 31.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006039/0.4382, allocations: 0.6276 MB / 472.2 MB, free: 30.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.854e-05/0.4382, allocations: 40.39 kB / 472.2 MB, free: 30.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002088/0.4385, allocations: 364.1 kB / 472.6 MB, free: 30.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.178e-05/0.4385, allocations: 160.5 kB / 472.7 MB, free: 30.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001335/0.4387, allocations: 94.55 kB / 472.8 MB, free: 30.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.76e-05/0.4388, allocations: 329.7 kB / 473.1 MB, free: 30.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004199/0.4392, allocations: 188.6 kB / 473.3 MB, free: 30.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004667/0.4397, allocations: 282.5 kB / 473.6 MB, free: 29.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008381/0.4405, allocations: 479.2 kB / 474.1 MB, free: 29.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.4405, allocations: 0 / 474.1 MB, free: 29.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001116/0.4416, allocations: 0.6101 MB / 474.7 MB, free: 29.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.678e-05/0.4417, allocations: 31.11 kB / 474.7 MB, free: 29.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.4417, allocations: 6.656 kB / 474.7 MB, free: 29.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.344e-05/0.4417, allocations: 5.156 kB / 474.7 MB, free: 29.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005039/0.4422, allocations: 109.8 kB / 474.8 MB, free: 29.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.827e-05/0.4423, allocations: 6.25 kB / 474.8 MB, free: 29.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004054/0.4427, allocations: 67.12 kB / 474.9 MB, free: 29.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.285e-05/0.4427, allocations: 21.84 kB / 474.9 MB, free: 29.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004906/0.4432, allocations: 304.4 kB / 475.2 MB, free: 29.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003342/0.4436, allocations: 260.2 kB / 475.5 MB, free: 28.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006003/0.4442, allocations: 437.7 kB / 475.9 MB, free: 28.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.613e-06/0.4442, allocations: 0 / 475.9 MB, free: 28.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.0008038/0.445, allocations: 0.5591 MB / 476.5 MB, free: 28.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.445, allocations: 35.77 kB / 476.5 MB, free: 28.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.4451, allocations: 4.922 kB / 476.5 MB, free: 28.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.663e-06/0.4451, allocations: 3.469 kB / 476.5 MB, free: 28.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003548/0.4454, allocations: 100.9 kB / 476.6 MB, free: 28.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.4454, allocations: 5.25 kB / 476.6 MB, free: 28.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003103/0.4458, allocations: 42.47 kB / 476.7 MB, free: 28.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.726e-05/0.4458, allocations: 19.62 kB / 476.7 MB, free: 28.23 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0001444/0.446, allocations: 228.8 kB / 476.9 MB, free: 28.01 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.141e-05/0.4461, allocations: 74.38 kB / 477 MB, free: 27.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000149/0.4462, allocations: 79.98 kB / 477 MB, free: 27.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.4462, allocations: 5.844 kB / 477.1 MB, free: 27.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.4462, allocations: 0 / 477.1 MB, free: 27.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.4462, allocations: 3.469 kB / 477.1 MB, free: 27.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005423/0.4468, allocations: 0.6284 MB / 477.7 MB, free: 27.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.4468, allocations: 0 / 477.7 MB, free: 27.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004223/0.4472, allocations: 81.38 kB / 477.8 MB, free: 27.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.4472, allocations: 6.531 kB / 477.8 MB, free: 27.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.005e-05/0.4473, allocations: 11.75 kB / 477.8 MB, free: 27.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.4473, allocations: 2.594 kB / 477.8 MB, free: 27.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4473, allocations: 3.328 kB / 477.8 MB, free: 27.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/0.4487, allocations: 0.7324 MB / 478.5 MB, free: 27.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.4489, allocations: 194.5 kB / 478.7 MB, free: 27.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.678e-05/0.449, allocations: 8.812 kB / 478.7 MB, free: 27.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003779/0.4494, allocations: 36.83 kB / 478.8 MB, free: 27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.74e-05/0.4495, allocations: 29.02 kB / 478.8 MB, free: 27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-05/0.4495, allocations: 21.47 kB / 478.8 MB, free: 26.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005085/0.45, allocations: 441.9 kB / 479.2 MB, free: 26.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.45, allocations: 0 / 479.2 MB, free: 26.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005844/0.4506, allocations: 221.5 kB / 479.5 MB, free: 26.74 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.0001192/0.4507, allocations: 113.1 kB / 479.6 MB, free: 26.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001491/0.4522, allocations: 0.8025 MB / 480.4 MB, free: 26.28 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4523, allocations: 0 / 480.4 MB, free: 26.28 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004039/0.4527, allocations: 211.3 kB / 480.6 MB, free: 26.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008943/0.4536, allocations: 215.4 kB / 480.8 MB, free: 26.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001877/0.4555, allocations: 1.208 MB / 482 MB, free: 25.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003438/0.4558, allocations: 0.9221 MB / 482.9 MB, free: 24.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000356/0.4562, allocations: 93.83 kB / 483 MB, free: 24.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001477/0.4563, allocations: 51.86 kB / 483.1 MB, free: 24.76 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4563, allocations: 0 / 483.1 MB, free: 24.76 MB / 382.1 MB Notification: Performance of Templates: time 0.01701/0.4734, allocations: 7.905 MB / 491 MB, free: 24.26 MB / 382.1 MB make -j1 -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID.makefile (rm -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID.pipe >> ../files/Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID.sim & ./Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID.pipe 2>&1)