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.0009742/0.0009742, allocations: 177 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.225/1.225, allocations: 223.2 MB / 241 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 97.27 kB / 292.2 MB, free: 10.71 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.3231/0.3231, allocations: 44.21 MB / 387.5 MB, free: 38.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002998/0.0002999, allocations: 16 kB / 459.9 MB, free: 1.551 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2925, allocations: 61.9 MB / 0.5096 GB, free: 37.81 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1171/0.4097, allocations: 96.51 MB / 0.6038 GB, free: 14.62 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002106/0.41, allocations: 67.97 kB / 0.6039 GB, free: 14.56 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04163/0.4516, allocations: 14.72 MB / 0.6182 GB, free: 15.81 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4517, allocations: 0 / 0.6182 GB, free: 15.81 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.312e-05/0.4517, allocations: 20 kB / 0.6183 GB, free: 15.79 MB / 442.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.002234/0.454, allocations: 1.078 MB / 0.6193 GB, free: 14.66 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.454, allocations: 16.02 kB / 0.6193 GB, free: 14.65 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001508/0.4542, allocations: 90.88 kB / 0.6194 GB, free: 14.56 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001142/0.4553, allocations: 0.5859 MB / 0.62 GB, free: 13.93 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.277e-05/0.4554, allocations: 37 kB / 0.62 GB, free: 13.89 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.297e-05/0.4555, allocations: 63.84 kB / 0.6201 GB, free: 13.83 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.4566, allocations: 0.6252 MB / 0.6207 GB, free: 13.15 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/0.4566, allocations: 4 kB / 0.6207 GB, free: 13.14 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.09e-05/0.4567, allocations: 23.92 kB / 0.6207 GB, free: 13.12 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.4567, allocations: 12 kB / 0.6207 GB, free: 13.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001028/0.4577, allocations: 0.4929 MB / 0.6212 GB, free: 12.62 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003435/0.4612, allocations: 2.71 MB / 0.6239 GB, free: 9.809 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001146/0.4623, allocations: 0.5894 MB / 0.6244 GB, free: 9.195 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.12e-05/0.4624, allocations: 4.062 kB / 0.6244 GB, free: 9.191 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.4624, allocations: 46.59 kB / 0.6245 GB, free: 9.137 MB / 442.7 MB Notification: Performance of pre-optimization done (n=43): time 1.943e-06/0.4624, allocations: 0 / 0.6245 GB, free: 9.137 MB / 442.7 MB Notification: Performance of matching and sorting (n=44): time 0.002431/0.4648, allocations: 1.195 MB / 0.6256 GB, free: 7.934 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.691e-05/0.4649, allocations: 140.4 kB / 0.6258 GB, free: 7.766 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007684/0.4657, allocations: 0.57 MB / 0.6263 GB, free: 7.188 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.679e-05/0.4658, allocations: 37.7 kB / 0.6264 GB, free: 7.145 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002481/0.466, allocations: 356 kB / 0.6267 GB, free: 6.793 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001376/0.4662, allocations: 181.5 kB / 0.6269 GB, free: 6.613 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.446e-05/0.4662, allocations: 8 kB / 0.6269 GB, free: 6.605 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.4663, allocations: 333.9 kB / 0.6272 GB, free: 6.273 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005979/0.4669, allocations: 285.1 kB / 0.6275 GB, free: 5.996 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006982/0.4676, allocations: 453.2 kB / 0.6279 GB, free: 5.48 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006444/0.4683, allocations: 331 kB / 0.6282 GB, free: 5.16 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.4683, allocations: 0 / 0.6282 GB, free: 5.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001558/0.4699, allocations: 0.8457 MB / 0.6291 GB, free: 4.312 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007366/0.4706, allocations: 1.746 MB / 0.6308 GB, free: 2.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.4706, allocations: 8.047 kB / 0.6308 GB, free: 2.422 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-05/0.4707, allocations: 11.98 kB / 0.6308 GB, free: 2.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006753/0.4714, allocations: 155.8 kB / 0.6309 GB, free: 2.258 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.095e-05/0.4714, allocations: 15.92 kB / 0.6309 GB, free: 2.242 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005735/0.472, allocations: 95.62 kB / 0.631 GB, free: 2.148 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.61e-05/0.472, allocations: 24 kB / 0.6311 GB, free: 2.125 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.745e-06/0.472, allocations: 4 kB / 0.6311 GB, free: 2.121 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001355/0.4734, allocations: 0.718 MB / 0.6318 GB, free: 1.402 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.4734, allocations: 4 kB / 0.6318 GB, free: 1.398 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.4734, allocations: 8 kB / 0.6318 GB, free: 1.391 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005954/0.474, allocations: 156.3 kB / 0.6319 GB, free: 1.238 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.474, allocations: 11.94 kB / 0.6319 GB, free: 1.227 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005227/0.4746, allocations: 83.62 kB / 0.632 GB, free: 1.145 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.16e-05/0.4746, allocations: 28 kB / 0.632 GB, free: 1.117 MB / 442.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 () * 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.0003904/0.475, allocations: 284.9 kB / 0.6323 GB, free: 0.8281 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/0.4752, allocations: 75.06 kB / 0.6324 GB, free: 0.7539 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001717/0.4754, allocations: 86.22 kB / 0.6325 GB, free: 0.6641 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.4754, allocations: 4 kB / 0.6325 GB, free: 0.6602 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.4754, allocations: 3.938 kB / 0.6325 GB, free: 0.6562 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.4754, allocations: 3.984 kB / 0.6325 GB, free: 0.6523 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001291/0.4767, allocations: 0.8491 MB / 0.6333 GB, free: 15.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.4767, allocations: 4 kB / 0.6333 GB, free: 15.74 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006549/0.4774, allocations: 115.9 kB / 0.6334 GB, free: 15.63 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.4774, allocations: 4 kB / 0.6334 GB, free: 15.62 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.12e-05/0.4774, allocations: 12 kB / 0.6334 GB, free: 15.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.4775, allocations: 4 kB / 0.6334 GB, free: 15.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.4775, allocations: 7.938 kB / 0.6335 GB, free: 15.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001942/0.4794, allocations: 1.224 MB / 0.6346 GB, free: 14.35 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002634/0.4797, allocations: 204.1 kB / 0.6348 GB, free: 14.13 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.392e-05/0.4798, allocations: 19.94 kB / 0.6349 GB, free: 14.11 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005583/0.4803, allocations: 63.94 kB / 0.6349 GB, free: 14.05 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.4805, allocations: 39.89 kB / 0.635 GB, free: 14.01 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.395e-05/0.4805, allocations: 19.98 kB / 0.635 GB, free: 13.99 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006033/0.4811, allocations: 455 kB / 0.6354 GB, free: 13.55 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4811, allocations: 0 / 0.6354 GB, free: 13.55 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0007337/0.4819, allocations: 200 kB / 0.6356 GB, free: 13.36 MB / 458.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 () * 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.0001559/0.4821, allocations: 127.2 kB / 0.6357 GB, free: 13.22 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001959/0.484, allocations: 1.02 MB / 0.6367 GB, free: 12.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.484, allocations: 0 / 0.6367 GB, free: 12.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006131/0.4847, allocations: 308.6 kB / 0.637 GB, free: 11.89 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007742/0.4854, allocations: 163.5 kB / 0.6372 GB, free: 11.74 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/0.4878, allocations: 1.712 MB / 0.6388 GB, free: 9.988 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004552/0.4883, allocations: 0.9652 MB / 0.6398 GB, free: 8.996 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0005479/0.4888, allocations: 152.7 kB / 0.6399 GB, free: 8.848 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001623/0.489, allocations: 43.44 kB / 0.64 GB, free: 8.805 MB / 458.7 MB Notification: Performance of SimCode: time 5.31e-07/0.489, allocations: 0 / 0.64 GB, free: 8.805 MB / 458.7 MB Notification: Performance of Templates: time 0.01115/0.5002, allocations: 6.69 MB / 0.6465 GB, free: 2.188 MB / 458.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