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/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 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 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 94.09 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 182.6 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2336/0.2336, allocations: 44.21 MB / 337.1 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000394/0.0003943, allocations: 10.38 kB / 409.5 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1752, allocations: 61.93 MB / 471.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialState): time 0.004175/0.1794, allocations: 2.82 MB / 474.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003724/0.1832, allocations: 1.459 MB / 475.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008378/0.1841, allocations: 19.88 kB / 475.7 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007488/0.1848, allocations: 83.39 kB / 475.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007293/0.1856, allocations: 202.8 kB / 476 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00146/0.187, allocations: 410.2 kB / 476.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009397/0.188, allocations: 0.5736 MB / 477 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004345/0.1884, allocations: 177 kB / 477.2 MB, free: 7.965 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005069/0.189, allocations: 310.7 kB / 477.5 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004862/0.1895, allocations: 318.4 kB / 477.8 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.58e-05/0.1895, allocations: 20 kB / 477.8 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.681e-05/0.1896, allocations: 24 kB / 477.8 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002048/0.1898, allocations: 151.4 kB / 478 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.19, allocations: 125.3 kB / 478.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006057/0.1906, allocations: 0.5416 MB / 478.6 MB, free: 6.484 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1906, allocations: 0 / 478.6 MB, free: 6.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.078e-06/0.1906, allocations: 4 kB / 478.6 MB, free: 6.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.523e-05/0.1906, allocations: 0 / 478.6 MB, free: 6.48 MB / 350.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.002494/0.1931, allocations: 1.063 MB / 479.7 MB, free: 5.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.078e-05/0.1932, allocations: 8.031 kB / 479.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001669/0.1934, allocations: 86.97 kB / 479.8 MB, free: 5.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/0.1945, allocations: 0.5265 MB / 480.3 MB, free: 4.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.285e-05/0.1946, allocations: 37 kB / 480.4 MB, free: 4.672 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.1947, allocations: 59.95 kB / 480.4 MB, free: 4.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.1959, allocations: 0.6205 MB / 481 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.509e-05/0.196, allocations: 8 kB / 481.1 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.909e-05/0.196, allocations: 20 kB / 481.1 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.925e-05/0.1961, allocations: 12 kB / 481.1 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001244/0.1973, allocations: 0.4944 MB / 481.6 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004117/0.2014, allocations: 2.694 MB / 484.3 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.2028, allocations: 0.5819 MB / 484.9 MB, free: 0 / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.504e-05/0.2029, allocations: 4.047 kB / 484.9 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.633e-05/0.2029, allocations: 38.56 kB / 484.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.355e-06/0.2029, allocations: 3.938 kB / 484.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002837/0.2058, allocations: 1.199 MB / 486.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.2059, allocations: 140.5 kB / 486.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009732/0.2069, allocations: 0.6451 MB / 486.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.276e-05/0.207, allocations: 37.7 kB / 486.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003629/0.2073, allocations: 356 kB / 487.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.2075, allocations: 181.4 kB / 487.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-05/0.2076, allocations: 12 kB / 487.5 MB, free: 13.33 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002107/0.2078, allocations: 330 kB / 487.8 MB, free: 13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006462/0.2084, allocations: 285.1 kB / 488.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007885/0.2092, allocations: 457 kB / 488.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007144/0.21, allocations: 329.2 kB / 488.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.21, allocations: 3.953 kB / 488.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001683/0.2117, allocations: 0.8303 MB / 489.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001014/0.2127, allocations: 1.742 MB / 491.4 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.2127, allocations: 4 kB / 491.4 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.075e-05/0.2127, allocations: 8 kB / 491.4 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007188/0.2135, allocations: 167.7 kB / 491.6 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.274e-05/0.2135, allocations: 11.95 kB / 491.6 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005479/0.2141, allocations: 87.62 kB / 491.7 MB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.666e-05/0.2141, allocations: 24 kB / 491.7 MB, free: 8.875 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.027e-06/0.2141, allocations: 4 kB / 491.7 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001449/0.2156, allocations: 0.7141 MB / 492.4 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.2156, allocations: 4 kB / 492.4 MB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.2156, allocations: 8.531 kB / 492.4 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006132/0.2163, allocations: 163.7 kB / 492.6 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.2163, allocations: 11.98 kB / 492.6 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004978/0.2168, allocations: 83.55 kB / 492.7 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.857e-05/0.2168, allocations: 28 kB / 492.7 MB, free: 7.863 MB / 366.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.000504/0.2173, allocations: 296.8 kB / 493 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002026/0.2176, allocations: 79 kB / 493.1 MB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001797/0.2177, allocations: 86.2 kB / 493.2 MB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-06/0.2178, allocations: 8 kB / 493.2 MB, free: 7.387 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.2178, allocations: 4 kB / 493.2 MB, free: 7.383 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.2178, allocations: 0 / 493.2 MB, free: 7.383 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001567/0.2194, allocations: 0.8571 MB / 494 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.2194, allocations: 0 / 494 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006245/0.22, allocations: 115.9 kB / 494.1 MB, free: 6.355 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.22, allocations: 7.938 kB / 494.1 MB, free: 6.348 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.347e-05/0.2201, allocations: 16 kB / 494.2 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.2201, allocations: 0 / 494.2 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.2201, allocations: 0 / 494.2 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002191/0.2223, allocations: 1.235 MB / 495.4 MB, free: 5.062 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002772/0.2226, allocations: 200.1 kB / 495.6 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.033e-05/0.2227, allocations: 12 kB / 495.6 MB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005218/0.2232, allocations: 67.94 kB / 495.7 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.2234, allocations: 43.83 kB / 495.7 MB, free: 4.727 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.121e-05/0.2234, allocations: 12 kB / 495.7 MB, free: 4.715 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000662/0.2241, allocations: 455 kB / 496.2 MB, free: 4.273 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2241, allocations: 0 / 496.2 MB, free: 4.273 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008081/0.2249, allocations: 196 kB / 496.4 MB, free: 4.082 MB / 366.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.0002296/0.2251, allocations: 115.2 kB / 496.5 MB, free: 3.961 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002313/0.2274, allocations: 1.009 MB / 497.5 MB, free: 2.953 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2275, allocations: 0 / 497.5 MB, free: 2.953 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007565/0.2282, allocations: 303.7 kB / 497.8 MB, free: 2.656 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009452/0.2292, allocations: 169.9 kB / 497.9 MB, free: 2.496 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00274/0.2319, allocations: 1.714 MB / 499.7 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005692/0.2325, allocations: 0.9653 MB / 0.4889 GB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005003/0.233, allocations: 148.8 kB / 0.489 GB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.2332, allocations: 47.44 kB / 0.4891 GB, free: 15.56 MB / 382.1 MB Notification: Performance of SimCode: time 8.02e-07/0.2332, allocations: 0 / 0.4891 GB, free: 15.56 MB / 382.1 MB Notification: Performance of Templates: time 0.01473/0.2479, allocations: 6.545 MB / 0.4955 GB, free: 9.074 MB / 382.1 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