Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState.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_InitialState,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_InitialState") translateModel(ModelicaTest.Blocks.Continuous_InitialState,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_InitialState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009516/0.0009515, allocations: 180.5 kB / 14.15 MB, free: 1.176 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.287/1.287, allocations: 221.3 MB / 236 MB, free: 2.918 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.0008666/0.0008666, allocations: 90.48 kB / 287 MB, free: 200 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.179/0.179, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.666e-05/2.668e-05, allocations: 8.219 kB / 451.8 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1152, allocations: 61.92 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3525/0.4677, allocations: 96.84 MB / 0.5963 GB, free: 8.449 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002032/0.468, allocations: 67.97 kB / 0.5963 GB, free: 8.383 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07876/0.5468, allocations: 27.95 MB / 0.6236 GB, free: 12.36 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5468, allocations: 0 / 0.6236 GB, free: 12.36 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.229e-05/0.5469, allocations: 19.94 kB / 0.6236 GB, free: 12.34 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.001616/0.5485, allocations: 0.9503 MB / 0.6246 GB, free: 11.34 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.5485, allocations: 8.031 kB / 0.6246 GB, free: 11.33 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001469/0.5487, allocations: 90.92 kB / 0.6247 GB, free: 11.24 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009198/0.5496, allocations: 0.5586 MB / 0.6252 GB, free: 10.64 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.011e-05/0.5497, allocations: 37 kB / 0.6252 GB, free: 10.61 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.672e-05/0.5498, allocations: 59.98 kB / 0.6253 GB, free: 10.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008275/0.5506, allocations: 0.5479 MB / 0.6258 GB, free: 9.941 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.5506, allocations: 7.938 kB / 0.6258 GB, free: 9.934 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.921e-05/0.5507, allocations: 20 kB / 0.6259 GB, free: 9.914 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.5507, allocations: 15.95 kB / 0.6259 GB, free: 9.898 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000594/0.5513, allocations: 366 kB / 0.6262 GB, free: 9.543 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003546/0.5549, allocations: 2.706 MB / 0.6289 GB, free: 6.734 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007544/0.5556, allocations: 479.4 kB / 0.6293 GB, free: 6.238 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003058/0.5559, allocations: 194.6 kB / 0.6295 GB, free: 6.039 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.309e-05/0.556, allocations: 4 kB / 0.6295 GB, free: 6.035 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.556, allocations: 42.56 kB / 0.6296 GB, free: 5.984 MB / 442.7 MB Notification: Performance of pre-optimization done (n=43): time 3.737e-06/0.5561, allocations: 3.984 kB / 0.6296 GB, free: 5.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=44): time 0.0014/0.5575, allocations: 0.8003 MB / 0.6303 GB, free: 5.168 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.862e-05/0.5576, allocations: 140.5 kB / 0.6305 GB, free: 5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006565/0.5582, allocations: 0.5507 MB / 0.631 GB, free: 4.441 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.106e-05/0.5583, allocations: 33.7 kB / 0.631 GB, free: 4.402 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002644/0.5585, allocations: 352.1 kB / 0.6314 GB, free: 4.055 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/0.5587, allocations: 169.5 kB / 0.6315 GB, free: 3.887 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.183e-05/0.5587, allocations: 16 kB / 0.6316 GB, free: 3.871 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.5588, allocations: 326 kB / 0.6319 GB, free: 3.547 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003504/0.5592, allocations: 205.5 kB / 0.6321 GB, free: 3.344 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004353/0.5596, allocations: 363.4 kB / 0.6324 GB, free: 2.918 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003763/0.56, allocations: 260.3 kB / 0.6327 GB, free: 2.668 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.56, allocations: 3.938 kB / 0.6327 GB, free: 2.664 MB / 442.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.000992/0.561, allocations: 0.674 MB / 0.6333 GB, free: 1.984 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005948/0.5616, allocations: 1.75 MB / 0.635 GB, free: 104 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.5617, allocations: 7.984 kB / 0.635 GB, free: 96 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/0.5617, allocations: 8 kB / 0.6351 GB, free: 88 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006902/0.5624, allocations: 163.8 kB / 0.6352 GB, free: 15.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.115e-05/0.5624, allocations: 11.94 kB / 0.6352 GB, free: 15.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005946/0.563, allocations: 91.62 kB / 0.6353 GB, free: 15.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.316e-05/0.5631, allocations: 24 kB / 0.6353 GB, free: 15.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.5631, allocations: 4 kB / 0.6353 GB, free: 15.8 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009556/0.5641, allocations: 0.5844 MB / 0.6359 GB, free: 15.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.5641, allocations: 7.938 kB / 0.6359 GB, free: 15.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.5641, allocations: 11.95 kB / 0.6359 GB, free: 15.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006118/0.5647, allocations: 152.3 kB / 0.6361 GB, free: 15.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.5648, allocations: 11.94 kB / 0.6361 GB, free: 15.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006081/0.5654, allocations: 91.53 kB / 0.6362 GB, free: 14.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.256e-05/0.5654, allocations: 28 kB / 0.6362 GB, free: 14.92 MB / 458.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.000162/0.5656, allocations: 136.8 kB / 0.6363 GB, free: 14.78 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.5658, allocations: 71.16 kB / 0.6364 GB, free: 14.71 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002307/0.566, allocations: 89.98 kB / 0.6365 GB, free: 14.62 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.566, allocations: 11.95 kB / 0.6365 GB, free: 14.61 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.566, allocations: 4 kB / 0.6365 GB, free: 14.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.566, allocations: 0 / 0.6365 GB, free: 14.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.5673, allocations: 0.8219 MB / 0.6373 GB, free: 13.72 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.5673, allocations: 4 kB / 0.6373 GB, free: 13.72 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006455/0.568, allocations: 111.9 kB / 0.6374 GB, free: 13.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.817e-06/0.568, allocations: 7.953 kB / 0.6374 GB, free: 13.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.053e-05/0.5681, allocations: 12 kB / 0.6374 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.5681, allocations: 7.984 kB / 0.6374 GB, free: 13.58 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.5681, allocations: 0 / 0.6374 GB, free: 13.58 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.5693, allocations: 0.9888 MB / 0.6384 GB, free: 12.56 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/0.5696, allocations: 196.3 kB / 0.6386 GB, free: 12.35 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.378e-05/0.5697, allocations: 16 kB / 0.6386 GB, free: 12.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005682/0.5703, allocations: 59.94 kB / 0.6387 GB, free: 12.28 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.5704, allocations: 43.88 kB / 0.6387 GB, free: 12.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.414e-05/0.5705, allocations: 15.98 kB / 0.6387 GB, free: 12.22 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005647/0.571, allocations: 427.2 kB / 0.6391 GB, free: 11.81 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5711, allocations: 0 / 0.6391 GB, free: 11.81 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00078/0.5718, allocations: 200 kB / 0.6393 GB, free: 11.61 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 () * 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.0001954/0.572, allocations: 123.1 kB / 0.6394 GB, free: 11.48 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.5733, allocations: 0.8178 MB / 0.6402 GB, free: 10.66 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.5733, allocations: 0 / 0.6402 GB, free: 10.66 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003463/0.5737, allocations: 226 kB / 0.6404 GB, free: 10.44 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008674/0.5746, allocations: 174.8 kB / 0.6406 GB, free: 10.27 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00196/0.5765, allocations: 1.2 MB / 0.6418 GB, free: 9.039 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004559/0.577, allocations: 0.9666 MB / 0.6427 GB, free: 8.043 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0006734/0.5777, allocations: 207.1 kB / 0.6429 GB, free: 7.84 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.5778, allocations: 35.44 kB / 0.643 GB, free: 7.805 MB / 458.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5778, allocations: 0 / 0.643 GB, free: 7.805 MB / 458.7 MB Notification: Performance of Templates: time 0.01303/0.5909, allocations: 8.119 MB / 0.6509 GB, free: 15.74 MB / 474.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous_InitialState/Continuous_InitialState.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches