Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.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_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_3.2.3_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_3.2.3_ModelicaTest.Blocks.Continuous_InitialState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009066/0.0009063, allocations: 88.19 kB / 15.7 MB, free: 460 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.00147/0.00147, allocations: 175 kB / 16.58 MB, free: 6.84 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.211/2.211, allocations: 205.4 MB / 222.8 MB, free: 5.66 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.5513/0.5513, allocations: 43.58 MB / 314.6 MB, free: 8.723 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.0005242/0.0005243, allocations: 16 kB / 384 MB, free: 8.008 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.171/0.1716, allocations: 58.87 MB / 442.8 MB, free: 13.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialState): time 0.003871/0.1755, allocations: 2.84 MB / 445.7 MB, free: 10.17 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003287/0.1788, allocations: 1.517 MB / 447.2 MB, free: 8.645 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003651/0.1792, allocations: 23.88 kB / 447.2 MB, free: 8.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005277/0.1797, allocations: 107.2 kB / 447.3 MB, free: 8.516 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004079/0.1802, allocations: 151 kB / 447.5 MB, free: 8.367 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.1813, allocations: 431.2 kB / 447.9 MB, free: 7.945 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008716/0.1821, allocations: 0.791 MB / 448.7 MB, free: 7.152 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003481/0.1825, allocations: 177.2 kB / 448.8 MB, free: 6.969 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000386/0.1829, allocations: 298.6 kB / 449.1 MB, free: 6.676 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004307/0.1833, allocations: 326.3 kB / 449.4 MB, free: 6.355 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.517e-05/0.1834, allocations: 24 kB / 449.5 MB, free: 6.332 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.879e-05/0.1835, allocations: 23.94 kB / 449.5 MB, free: 6.309 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.1837, allocations: 151.4 kB / 449.6 MB, free: 6.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.1838, allocations: 133.3 kB / 449.8 MB, free: 6.023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005413/0.1843, allocations: 0.5417 MB / 450.3 MB, free: 5.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.1844, allocations: 0 / 450.3 MB, free: 5.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1844, allocations: 0 / 450.3 MB, free: 5.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.1844, allocations: 0 / 450.3 MB, free: 5.48 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.002086/0.1865, allocations: 1.055 MB / 451.4 MB, free: 4.371 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.1865, allocations: 8.031 kB / 451.4 MB, free: 4.363 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001591/0.1867, allocations: 98.83 kB / 451.5 MB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009093/0.1876, allocations: 0.5343 MB / 452 MB, free: 3.688 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.11e-05/0.1877, allocations: 40.94 kB / 452 MB, free: 3.648 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.782e-05/0.1878, allocations: 52 kB / 452.1 MB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/0.189, allocations: 0.633 MB / 452.7 MB, free: 2.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/0.189, allocations: 3.938 kB / 452.7 MB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.455e-05/0.1891, allocations: 16 kB / 452.8 MB, free: 2.891 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.802e-05/0.1891, allocations: 15.98 kB / 452.8 MB, free: 2.875 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.1902, allocations: 0.4977 MB / 453.3 MB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3531/0.5433, allocations: 2.676 MB / 455.9 MB, free: 44.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.5444, allocations: 0.5785 MB / 456.5 MB, free: 44.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005124/0.5449, allocations: 275.3 kB / 456.8 MB, free: 44.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.952e-05/0.545, allocations: 2.469 kB / 456.8 MB, free: 44.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.545, allocations: 46.38 kB / 456.8 MB, free: 44.51 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 2.254e-06/0.5451, allocations: 3.844 kB / 456.8 MB, free: 44.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.002326/0.5474, allocations: 1.202 MB / 458 MB, free: 44.26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.979e-05/0.5475, allocations: 141.8 kB / 458.2 MB, free: 44.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008018/0.5483, allocations: 0.6479 MB / 458.8 MB, free: 43.97 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.821e-05/0.5483, allocations: 35.8 kB / 458.9 MB, free: 43.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002382/0.5486, allocations: 365.6 kB / 459.2 MB, free: 43.81 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.5487, allocations: 170.3 kB / 459.4 MB, free: 43.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.095e-05/0.5487, allocations: 16.44 kB / 459.4 MB, free: 43.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.952e-05/0.5488, allocations: 329.5 kB / 459.7 MB, free: 43.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005442/0.5494, allocations: 283.1 kB / 460 MB, free: 43.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005937/0.55, allocations: 447.6 kB / 460.4 MB, free: 43.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005815/0.5506, allocations: 336 kB / 460.8 MB, free: 43.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.5506, allocations: 6.25 kB / 460.8 MB, free: 43.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001389/0.552, allocations: 0.8337 MB / 461.6 MB, free: 43.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000132/0.5521, allocations: 218.4 kB / 461.8 MB, free: 42.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.5521, allocations: 9.406 kB / 461.8 MB, free: 42.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/0.5522, allocations: 8.438 kB / 461.8 MB, free: 42.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005997/0.5528, allocations: 162.4 kB / 462 MB, free: 42.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.486e-05/0.5528, allocations: 12.69 kB / 462 MB, free: 42.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004494/0.5532, allocations: 93.17 kB / 462.1 MB, free: 42.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.078e-05/0.5533, allocations: 23.5 kB / 462.1 MB, free: 42.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.614e-06/0.5533, allocations: 5.625 kB / 462.1 MB, free: 42.85 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001191/0.5545, allocations: 0.7174 MB / 462.8 MB, free: 42.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.5545, allocations: 3.688 kB / 462.8 MB, free: 42.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.918e-06/0.5545, allocations: 8.875 kB / 462.9 MB, free: 42.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005301/0.5551, allocations: 157.9 kB / 463 MB, free: 42.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.5551, allocations: 13.08 kB / 463 MB, free: 42.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000431/0.5555, allocations: 85.66 kB / 463.1 MB, free: 42.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.446e-05/0.5556, allocations: 24.55 kB / 463.1 MB, free: 42.76 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.0003951/0.556, allocations: 293.8 kB / 463.4 MB, free: 42.55 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004004/0.5564, allocations: 74.78 kB / 463.5 MB, free: 42.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002383/0.5566, allocations: 88.73 kB / 463.6 MB, free: 42.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.5566, allocations: 3.062 kB / 463.6 MB, free: 42.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/0.5567, allocations: 2.5 kB / 463.6 MB, free: 42.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.5567, allocations: 3.281 kB / 463.6 MB, free: 42.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001318/0.558, allocations: 0.8716 MB / 464.5 MB, free: 42.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.177e-06/0.558, allocations: 1 kB / 464.5 MB, free: 42.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005509/0.5586, allocations: 115.4 kB / 464.6 MB, free: 42.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.5586, allocations: 2.406 kB / 464.6 MB, free: 42.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.22e-05/0.5586, allocations: 15.47 kB / 464.6 MB, free: 42.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.5586, allocations: 2.812 kB / 464.6 MB, free: 42.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.5587, allocations: 0 / 464.6 MB, free: 42.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.5603, allocations: 1.206 MB / 465.8 MB, free: 41.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002183/0.5605, allocations: 197.5 kB / 466 MB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.03e-05/0.5606, allocations: 14.75 kB / 466 MB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000445/0.5611, allocations: 61.31 kB / 466.1 MB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.5612, allocations: 40 kB / 466.1 MB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.968e-05/0.5612, allocations: 11.58 kB / 466.1 MB, free: 41.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005968/0.5618, allocations: 461.6 kB / 466.6 MB, free: 41.58 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5618, allocations: 0 / 466.6 MB, free: 41.58 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007601/0.5626, allocations: 193.8 kB / 466.8 MB, free: 41.58 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.0001272/0.5627, allocations: 111.7 kB / 466.9 MB, free: 41.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00186/0.5646, allocations: 1.01 MB / 467.9 MB, free: 41.44 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.5646, allocations: 4.188 kB / 467.9 MB, free: 41.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005416/0.5652, allocations: 311.1 kB / 468.2 MB, free: 41.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009904/0.5662, allocations: 183.4 kB / 468.4 MB, free: 41.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002299/0.5685, allocations: 1.717 MB / 470.1 MB, free: 40.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.5689, allocations: 0.951 MB / 471 MB, free: 39.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004809/0.5694, allocations: 151.8 kB / 471.2 MB, free: 39.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001482/0.5695, allocations: 42.94 kB / 471.2 MB, free: 39.62 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5695, allocations: 0 / 471.2 MB, free: 39.62 MB / 382.1 MB Notification: Performance of Templates: time 0.01155/0.5811, allocations: 6.582 MB / 477.8 MB, free: 39.18 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Continuous_InitialState/Continuous_InitialState.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches