Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) 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_4.0.0_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_4.0.0_ModelicaTest.Blocks.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001354/0.001355, allocations: 169.7 kB / 8.739 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 221.5 MB / 230.7 MB, free: 7.504 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008856/0.0008856, allocations: 89.95 kB / 281.6 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2779/0.2779, allocations: 44.14 MB / 376.5 MB, free: 3.023 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.034e-05/2.036e-05, allocations: 4 kB / 444.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.137, allocations: 61.91 MB / 0.4947 GB, free: 1.258 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3526/0.4896, allocations: 95.77 MB / 0.5882 GB, free: 0.75 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001983/0.4898, allocations: 71.91 kB / 0.5883 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04233/0.5322, allocations: 14.58 MB / 0.6025 GB, free: 2.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5322, allocations: 0 / 0.6025 GB, free: 2.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.188e-05/0.5323, allocations: 24 kB / 0.6025 GB, free: 2.047 MB / 410.7 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.001677/0.534, allocations: 0.9475 MB / 0.6034 GB, free: 1.051 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.534, allocations: 15.98 kB / 0.6035 GB, free: 1.035 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.5342, allocations: 90.88 kB / 0.6035 GB, free: 0.9453 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009662/0.5352, allocations: 0.559 MB / 0.6041 GB, free: 356 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.625e-05/0.5352, allocations: 16 kB / 0.6041 GB, free: 340 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-05/0.5353, allocations: 39.91 kB / 0.6041 GB, free: 300 kB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006176/0.5359, allocations: 326.5 kB / 0.6045 GB, free: 15.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007704/0.5367, allocations: 0.49 MB / 0.6049 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.5367, allocations: 0 / 0.6049 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.47e-05/0.5368, allocations: 7.938 kB / 0.6049 GB, free: 15.42 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.5368, allocations: 15.94 kB / 0.605 GB, free: 15.4 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003443/0.5403, allocations: 2.612 MB / 0.6075 GB, free: 12.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007186/0.541, allocations: 452 kB / 0.6079 GB, free: 12.23 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000279/0.5413, allocations: 192.4 kB / 0.6081 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.547e-05/0.5413, allocations: 4 kB / 0.6081 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.5414, allocations: 46.53 kB / 0.6082 GB, free: 11.98 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 1.633e-06/0.5414, allocations: 0 / 0.6082 GB, free: 11.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=44): time 0.001243/0.5426, allocations: 0.7691 MB / 0.6089 GB, free: 11.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.125e-05/0.5427, allocations: 136.5 kB / 0.609 GB, free: 11.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005844/0.5433, allocations: 499.7 kB / 0.6095 GB, free: 10.54 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.92e-05/0.5434, allocations: 25.7 kB / 0.6096 GB, free: 10.51 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002562/0.5436, allocations: 356.6 kB / 0.6099 GB, free: 10.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001369/0.5438, allocations: 169.6 kB / 0.6101 GB, free: 9.988 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.937e-05/0.5438, allocations: 0 / 0.6101 GB, free: 9.988 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.544, allocations: 390.8 kB / 0.6104 GB, free: 9.598 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003101/0.5443, allocations: 193.5 kB / 0.6106 GB, free: 9.41 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004135/0.5447, allocations: 349 kB / 0.6109 GB, free: 8.996 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003538/0.5451, allocations: 229.3 kB / 0.6112 GB, free: 8.773 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.5451, allocations: 0 / 0.6112 GB, free: 8.773 MB / 426.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0009424/0.546, allocations: 0.627 MB / 0.6118 GB, free: 8.145 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006616/0.5467, allocations: 1.743 MB / 0.6135 GB, free: 6.266 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.5467, allocations: 4 kB / 0.6135 GB, free: 6.262 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.533e-05/0.5468, allocations: 8 kB / 0.6135 GB, free: 6.254 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007348/0.5475, allocations: 163.7 kB / 0.6136 GB, free: 6.094 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.5475, allocations: 15.97 kB / 0.6137 GB, free: 6.078 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005462/0.5481, allocations: 83.53 kB / 0.6137 GB, free: 5.996 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.285e-05/0.5481, allocations: 20 kB / 0.6138 GB, free: 5.977 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.5482, allocations: 5.25 kB / 0.6138 GB, free: 5.973 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008035/0.549, allocations: 0.5147 MB / 0.6143 GB, free: 5.457 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.549, allocations: 4 kB / 0.6143 GB, free: 5.453 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.657e-06/0.549, allocations: 8 kB / 0.6143 GB, free: 5.445 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006335/0.5496, allocations: 152.4 kB / 0.6144 GB, free: 5.297 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.5496, allocations: 15.92 kB / 0.6144 GB, free: 5.281 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004989/0.5502, allocations: 75.64 kB / 0.6145 GB, free: 5.207 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.348e-05/0.5502, allocations: 24 kB / 0.6145 GB, free: 5.184 MB / 426.7 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 () * 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.0001329/0.5504, allocations: 128.7 kB / 0.6147 GB, free: 5.051 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001317/0.5505, allocations: 67.16 kB / 0.6147 GB, free: 4.984 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001799/0.5507, allocations: 81.7 kB / 0.6148 GB, free: 4.902 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.5507, allocations: 7.938 kB / 0.6148 GB, free: 4.895 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.5507, allocations: 0 / 0.6148 GB, free: 4.895 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.5507, allocations: 7.984 kB / 0.6148 GB, free: 4.887 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.5518, allocations: 0.7521 MB / 0.6155 GB, free: 4.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.5518, allocations: 3.984 kB / 0.6155 GB, free: 4.086 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006653/0.5525, allocations: 111.9 kB / 0.6157 GB, free: 3.977 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.5525, allocations: 4 kB / 0.6157 GB, free: 3.973 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.377e-05/0.5525, allocations: 15.98 kB / 0.6157 GB, free: 3.957 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.5525, allocations: 0 / 0.6157 GB, free: 3.957 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.5525, allocations: 4 kB / 0.6157 GB, free: 3.953 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.5537, allocations: 0.9533 MB / 0.6166 GB, free: 2.965 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002249/0.5539, allocations: 192.2 kB / 0.6168 GB, free: 2.758 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.866e-05/0.554, allocations: 7.984 kB / 0.6168 GB, free: 2.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005634/0.5546, allocations: 63.94 kB / 0.6169 GB, free: 2.688 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.5547, allocations: 39.89 kB / 0.6169 GB, free: 2.648 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.02e-05/0.5547, allocations: 12 kB / 0.6169 GB, free: 2.637 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004205/0.5551, allocations: 375.2 kB / 0.6173 GB, free: 2.277 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5551, allocations: 0 / 0.6173 GB, free: 2.277 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000743/0.5559, allocations: 168 kB / 0.6174 GB, free: 2.113 MB / 426.7 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 () * 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.0001699/0.5561, allocations: 127 kB / 0.6176 GB, free: 1.98 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.5572, allocations: 0.7643 MB / 0.6183 GB, free: 1.215 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.5572, allocations: 0 / 0.6183 GB, free: 1.215 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003053/0.5575, allocations: 211.8 kB / 0.6185 GB, free: 1.008 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008996/0.5584, allocations: 161.8 kB / 0.6187 GB, free: 0.8477 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002158/0.5606, allocations: 1.182 MB / 0.6198 GB, free: 15.63 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000506/0.5611, allocations: 0.9627 MB / 0.6207 GB, free: 14.63 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007421/0.5619, allocations: 199 kB / 0.6209 GB, free: 14.44 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001402/0.562, allocations: 39.38 kB / 0.621 GB, free: 14.4 MB / 442.7 MB Notification: Performance of SimCode: time 5.11e-07/0.562, allocations: 4 kB / 0.621 GB, free: 14.39 MB / 442.7 MB Notification: Performance of Templates: time 0.01336/0.5754, allocations: 7.337 MB / 0.6281 GB, free: 7.121 MB / 442.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous/Continuous.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches