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/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,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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000875/0.0008752, allocations: 102.2 kB / 16.99 MB, free: 5.941 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.001276/0.001277, allocations: 183.1 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.457/1.457, 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.2542/0.2542, allocations: 44.22 MB / 337.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005145/0.0005148, allocations: 12 kB / 409.5 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1702/0.1708, allocations: 61.92 MB / 471.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.005/0.1759, allocations: 2.797 MB / 474.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003675/0.1796, allocations: 1.451 MB / 475.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000543/0.1802, allocations: 19.88 kB / 475.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006687/0.1809, allocations: 91.39 kB / 475.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005311/0.1814, allocations: 187.3 kB / 476 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001313/0.1828, allocations: 418.2 kB / 476.4 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009527/0.1837, allocations: 0.5775 MB / 477 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003739/0.1841, allocations: 177 kB / 477.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000477/0.1846, allocations: 306.7 kB / 477.4 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004393/0.185, allocations: 314.4 kB / 477.8 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.273e-05/0.1851, allocations: 20 kB / 477.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.734e-05/0.1852, allocations: 24 kB / 477.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001979/0.1854, allocations: 155.4 kB / 477.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001506/0.1855, allocations: 129.3 kB / 478.1 MB, free: 7.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005729/0.1861, allocations: 0.5377 MB / 478.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1861, allocations: 0 / 478.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.1862, allocations: 0 / 478.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.626e-05/0.1862, allocations: 0 / 478.6 MB, free: 6.535 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.002415/0.1886, allocations: 1.063 MB / 479.7 MB, free: 5.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/0.1887, allocations: 12.02 kB / 479.7 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.1888, allocations: 86.97 kB / 479.8 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/0.1899, allocations: 0.5304 MB / 480.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.585e-05/0.19, allocations: 37 kB / 480.3 MB, free: 4.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.1901, allocations: 55.95 kB / 480.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/0.1913, allocations: 0.6322 MB / 481 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/0.1913, allocations: 0 / 481 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.409e-05/0.1914, allocations: 16 kB / 481 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.1914, allocations: 12 kB / 481 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/0.1925, allocations: 0.4944 MB / 481.5 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004388/0.1969, allocations: 2.698 MB / 484.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/0.1984, allocations: 0.5896 MB / 484.8 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.786e-05/0.1984, allocations: 4 kB / 484.8 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.231e-05/0.1985, allocations: 42.61 kB / 484.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.545e-06/0.1985, allocations: 0 / 484.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.00292/0.2014, allocations: 1.199 MB / 486.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.939e-05/0.2015, allocations: 136.5 kB / 486.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009381/0.2025, allocations: 0.6451 MB / 486.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.83e-05/0.2025, allocations: 37.7 kB / 486.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003595/0.2029, allocations: 352.1 kB / 487.2 MB, free: 13.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001801/0.2031, allocations: 181.4 kB / 487.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.417e-05/0.2031, allocations: 16 kB / 487.4 MB, free: 13.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.2033, allocations: 326 kB / 487.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006344/0.204, allocations: 289.1 kB / 488 MB, free: 12.76 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007661/0.2047, allocations: 449 kB / 488.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007036/0.2055, allocations: 329.2 kB / 488.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.2055, allocations: 3.953 kB / 488.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001828/0.2073, allocations: 0.8341 MB / 489.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001079/0.2084, allocations: 1.741 MB / 491.4 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.2084, allocations: 4 kB / 491.4 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.463e-05/0.2085, allocations: 12 kB / 491.4 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007154/0.2092, allocations: 167.7 kB / 491.5 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.364e-05/0.2092, allocations: 11.95 kB / 491.6 MB, free: 9.023 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005865/0.2098, allocations: 91.62 kB / 491.6 MB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.149e-05/0.2099, allocations: 24 kB / 491.7 MB, free: 8.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.2099, allocations: 4 kB / 491.7 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001488/0.2114, allocations: 0.718 MB / 492.4 MB, free: 8.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.2114, allocations: 4 kB / 492.4 MB, free: 8.184 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.989e-06/0.2114, allocations: 8 kB / 492.4 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006073/0.212, allocations: 160.2 kB / 492.6 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.2121, allocations: 11.98 kB / 492.6 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005014/0.2126, allocations: 83.55 kB / 492.7 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.259e-05/0.2126, allocations: 28 kB / 492.7 MB, free: 7.898 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.0004574/0.2131, allocations: 292.8 kB / 493 MB, free: 7.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001786/0.2133, allocations: 79 kB / 493 MB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001875/0.2135, allocations: 90.22 kB / 493.1 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.2135, allocations: 4 kB / 493.1 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/0.2135, allocations: 0 / 493.1 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.2135, allocations: 3.984 kB / 493.1 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00151/0.215, allocations: 0.861 MB / 494 MB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.215, allocations: 0 / 494 MB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006364/0.2157, allocations: 119.9 kB / 494.1 MB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.2157, allocations: 0 / 494.1 MB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.7e-05/0.2157, allocations: 16 kB / 494.1 MB, free: 6.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.2158, allocations: 3.938 kB / 494.1 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.2158, allocations: 0 / 494.1 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002149/0.2179, allocations: 1.227 MB / 495.4 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002752/0.2182, allocations: 200.1 kB / 495.6 MB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.747e-05/0.2183, allocations: 12 kB / 495.6 MB, free: 4.879 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005242/0.2188, allocations: 63.94 kB / 495.6 MB, free: 4.816 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.219, allocations: 43.89 kB / 495.7 MB, free: 4.773 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.771e-05/0.219, allocations: 12 kB / 495.7 MB, free: 4.762 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006897/0.2197, allocations: 458.9 kB / 496.1 MB, free: 4.316 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2197, allocations: 0 / 496.1 MB, free: 4.316 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008276/0.2206, allocations: 196 kB / 496.3 MB, free: 4.125 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.0001802/0.2207, allocations: 115.2 kB / 496.4 MB, free: 4.004 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002263/0.223, allocations: 1.005 MB / 497.4 MB, free: 3.004 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.223, allocations: 4.062 kB / 497.4 MB, free: 3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006439/0.2237, allocations: 311.6 kB / 497.8 MB, free: 2.695 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009191/0.2246, allocations: 173.1 kB / 497.9 MB, free: 2.531 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002822/0.2274, allocations: 1.706 MB / 499.6 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000656/0.2281, allocations: 0.9691 MB / 0.4889 GB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005161/0.2286, allocations: 148.8 kB / 0.489 GB, free: 15.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.2288, allocations: 43.44 kB / 0.489 GB, free: 15.6 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.2288, allocations: 0 / 0.489 GB, free: 15.6 MB / 382.1 MB Notification: Performance of Templates: time 0.01361/0.2424, allocations: 6.543 MB / 0.4954 GB, free: 9.121 MB / 382.1 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