Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Blocks.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous") translateModel(ModelicaTest.Blocks.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008646/0.0008645, allocations: 96.94 kB / 15.7 MB, free: 468 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.0009599/0.0009599, allocations: 168.5 kB / 16.57 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.183/2.183, allocations: 205.4 MB / 222.8 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5413/0.5413, allocations: 43.56 MB / 314.6 MB, free: 8.816 MB / 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: Performance of FrontEnd - loaded program: time 0.0005165/0.0005165, allocations: 16 kB / 384 MB, free: 8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1444, allocations: 58.85 MB / 442.8 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.003809/0.1483, allocations: 2.82 MB / 445.6 MB, free: 10.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004058/0.1524, allocations: 1.513 MB / 447.1 MB, free: 8.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005228/0.1529, allocations: 19.88 kB / 447.2 MB, free: 8.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005685/0.1535, allocations: 107.2 kB / 447.3 MB, free: 8.555 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004315/0.154, allocations: 155 kB / 447.4 MB, free: 8.402 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.1552, allocations: 431.2 kB / 447.8 MB, free: 7.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009087/0.1561, allocations: 0.7911 MB / 448.6 MB, free: 7.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003432/0.1565, allocations: 177.2 kB / 448.8 MB, free: 7.004 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004004/0.1569, allocations: 290.6 kB / 449.1 MB, free: 6.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004685/0.1573, allocations: 334.3 kB / 449.4 MB, free: 6.391 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.47e-05/0.1574, allocations: 20 kB / 449.4 MB, free: 6.371 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.435e-05/0.1575, allocations: 28 kB / 449.5 MB, free: 6.344 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002062/0.1577, allocations: 147.4 kB / 449.6 MB, free: 6.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001403/0.1579, allocations: 129.3 kB / 449.7 MB, free: 6.066 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006051/0.1585, allocations: 0.5378 MB / 450.3 MB, free: 5.527 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.1585, allocations: 0 / 450.3 MB, free: 5.527 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.791e-06/0.1585, allocations: 4 kB / 450.3 MB, free: 5.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.1585, allocations: 3.938 kB / 450.3 MB, free: 5.52 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002373/0.1609, allocations: 1.063 MB / 451.3 MB, free: 4.402 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.856e-05/0.161, allocations: 11.98 kB / 451.3 MB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.1611, allocations: 94.83 kB / 451.4 MB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.1622, allocations: 0.5383 MB / 452 MB, free: 3.715 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.264e-05/0.1622, allocations: 37 kB / 452 MB, free: 3.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.1623, allocations: 59.89 kB / 452.1 MB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.1635, allocations: 0.6252 MB / 452.7 MB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.75e-05/0.1635, allocations: 7.938 kB / 452.7 MB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.099e-05/0.1636, allocations: 20 kB / 452.7 MB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.1636, allocations: 12 kB / 452.7 MB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009984/0.1646, allocations: 0.4977 MB / 453.2 MB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3451/0.5097, allocations: 2.681 MB / 455.9 MB, free: 46.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001151/0.5109, allocations: 0.574 MB / 456.5 MB, free: 46.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005478/0.5115, allocations: 275 kB / 456.8 MB, free: 45.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.43e-05/0.5116, allocations: 5.281 kB / 456.8 MB, free: 45.99 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.986e-05/0.5116, allocations: 43.02 kB / 456.8 MB, free: 45.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 1.943e-06/0.5116, allocations: 3.844 kB / 456.8 MB, free: 45.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.002557/0.5142, allocations: 1.204 MB / 458 MB, free: 45.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.442e-05/0.5143, allocations: 137.3 kB / 458.1 MB, free: 45.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008763/0.5151, allocations: 0.6548 MB / 458.8 MB, free: 45.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.5152, allocations: 36.52 kB / 458.8 MB, free: 45.38 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002846/0.5155, allocations: 367.6 kB / 459.2 MB, free: 45.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001641/0.5157, allocations: 168 kB / 459.4 MB, free: 45.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-05/0.5157, allocations: 13.41 kB / 459.4 MB, free: 45.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.5158, allocations: 331.2 kB / 459.7 MB, free: 44.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005577/0.5164, allocations: 284.3 kB / 460 MB, free: 44.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006501/0.517, allocations: 448.9 kB / 460.4 MB, free: 44.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006405/0.5177, allocations: 330.4 kB / 460.7 MB, free: 44.65 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.5177, allocations: 0 / 460.7 MB, free: 44.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001569/0.5193, allocations: 0.8358 MB / 461.6 MB, free: 44.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000153/0.5194, allocations: 223.9 kB / 461.8 MB, free: 44.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.5194, allocations: 3.094 kB / 461.8 MB, free: 44.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.711e-05/0.5195, allocations: 8.312 kB / 461.8 MB, free: 44.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006505/0.5201, allocations: 163.7 kB / 462 MB, free: 44.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.5202, allocations: 10.12 kB / 462 MB, free: 44.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004851/0.5207, allocations: 92.06 kB / 462.1 MB, free: 44.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.307e-05/0.5207, allocations: 25.55 kB / 462.1 MB, free: 44.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.216e-06/0.5207, allocations: 9.844 kB / 462.1 MB, free: 44.28 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00127/0.522, allocations: 0.7155 MB / 462.8 MB, free: 44.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.986e-06/0.522, allocations: 10.78 kB / 462.8 MB, free: 44.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.522, allocations: 12.34 kB / 462.8 MB, free: 44.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005356/0.5226, allocations: 146.6 kB / 463 MB, free: 44.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.5226, allocations: 11.88 kB / 463 MB, free: 44.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004302/0.523, allocations: 82.95 kB / 463.1 MB, free: 44.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-05/0.5231, allocations: 26.78 kB / 463.1 MB, free: 44.2 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003695/0.5235, allocations: 289 kB / 463.4 MB, free: 43.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001775/0.5236, allocations: 80.27 kB / 463.5 MB, free: 43.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002112/0.5239, allocations: 89.88 kB / 463.5 MB, free: 43.94 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.503e-06/0.5239, allocations: 9.688 kB / 463.6 MB, free: 43.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/0.5239, allocations: 0 / 463.6 MB, free: 43.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.5239, allocations: 3.234 kB / 463.6 MB, free: 43.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001355/0.5253, allocations: 0.8634 MB / 464.4 MB, free: 43.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.5253, allocations: 0 / 464.4 MB, free: 43.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000562/0.5259, allocations: 118.1 kB / 464.5 MB, free: 43.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.5259, allocations: 4.469 kB / 464.5 MB, free: 43.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.389e-05/0.5259, allocations: 16.73 kB / 464.6 MB, free: 43.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.5259, allocations: 3 kB / 464.6 MB, free: 43.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.5259, allocations: 4.562 kB / 464.6 MB, free: 43.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001899/0.5279, allocations: 1.197 MB / 465.8 MB, free: 43.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000213/0.5281, allocations: 197.9 kB / 466 MB, free: 43.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.163e-05/0.5282, allocations: 19.88 kB / 466 MB, free: 43.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004524/0.5286, allocations: 61.47 kB / 466 MB, free: 43.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.5287, allocations: 39.59 kB / 466.1 MB, free: 43.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.909e-05/0.5288, allocations: 11.91 kB / 466.1 MB, free: 43.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005998/0.5294, allocations: 457.7 kB / 466.5 MB, free: 43.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5294, allocations: 0 / 466.5 MB, free: 43.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008586/0.5303, allocations: 195.4 kB / 466.7 MB, free: 43.02 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001431/0.5304, allocations: 117.5 kB / 466.8 MB, free: 42.92 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001994/0.5324, allocations: 1.012 MB / 467.8 MB, free: 42.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.5324, allocations: 0 / 467.8 MB, free: 42.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005522/0.533, allocations: 304.6 kB / 468.1 MB, free: 42.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/0.5341, allocations: 185 kB / 468.3 MB, free: 42.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002701/0.5368, allocations: 1.713 MB / 470 MB, free: 41.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004093/0.5372, allocations: 0.9552 MB / 471 MB, free: 40.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005189/0.5377, allocations: 151.2 kB / 471.1 MB, free: 40.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001552/0.5379, allocations: 40.88 kB / 471.2 MB, free: 40.82 MB / 382.1 MB Notification: Performance of SimCode: time 9.81e-07/0.5379, allocations: 0 / 471.2 MB, free: 40.82 MB / 382.1 MB Notification: Performance of Templates: time 0.01318/0.5511, allocations: 6.578 MB / 477.8 MB, free: 40.38 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Continuous/Continuous.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches