Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008485/0.0008544, allocations: 97.77 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001001/0.001001, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.568/1.568, allocations: 227.7 MB / 246.4 MB, free: 9.793 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2251/0.2251, allocations: 46.18 MB / 344.8 MB, free: 11.31 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003075/0.0003075, allocations: 8.219 kB / 418.8 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1353, allocations: 63.57 MB / 482.4 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.005381/0.1407, allocations: 2.797 MB / 485.2 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004631/0.1454, allocations: 1.521 MB / 486.7 MB, free: 168 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007276/0.1462, allocations: 19.88 kB / 486.7 MB, free: 148 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008221/0.147, allocations: 107.2 kB / 486.8 MB, free: 40 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000606/0.1476, allocations: 143 kB / 487 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001467/0.1491, allocations: 438.5 kB / 487.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001242/0.1504, allocations: 0.7757 MB / 488.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004139/0.1508, allocations: 177.2 kB / 488.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006098/0.1514, allocations: 290.6 kB / 488.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000465/0.1519, allocations: 326.3 kB / 489 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.779e-05/0.152, allocations: 24 kB / 489 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.1521, allocations: 28 kB / 489 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.1523, allocations: 151.3 kB / 489.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.1524, allocations: 129.3 kB / 489.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005745/0.153, allocations: 0.5339 MB / 489.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.153, allocations: 4 kB / 489.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.105e-06/0.153, allocations: 0 / 489.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.1531, allocations: 0 / 489.8 MB, free: 13.04 MB / 366.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.002456/0.1555, allocations: 1.059 MB / 490.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.533e-05/0.1556, allocations: 9.109 kB / 490.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002971/0.1559, allocations: 98.95 kB / 491 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009009/0.1568, allocations: 0.546 MB / 491.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.339e-05/0.1569, allocations: 37 kB / 491.6 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.598e-05/0.157, allocations: 51.98 kB / 491.6 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001131/0.1581, allocations: 0.6377 MB / 492.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.1581, allocations: 7.844 kB / 492.3 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.008e-05/0.1582, allocations: 20 kB / 492.3 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.1582, allocations: 8 kB / 492.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001078/0.1593, allocations: 497.8 kB / 492.8 MB, free: 9.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003726/0.163, allocations: 2.698 MB / 495.5 MB, free: 7.129 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.1641, allocations: 0.5702 MB / 496.1 MB, free: 6.531 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005289/0.1647, allocations: 266.4 kB / 496.3 MB, free: 6.262 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.792e-05/0.1647, allocations: 8 kB / 496.3 MB, free: 6.254 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/0.1648, allocations: 42.55 kB / 496.4 MB, free: 6.203 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.124e-06/0.1648, allocations: 0 / 496.4 MB, free: 6.203 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002464/0.1673, allocations: 1.217 MB / 497.6 MB, free: 4.977 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.912e-05/0.1674, allocations: 162.2 kB / 497.7 MB, free: 4.781 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00089/0.1683, allocations: 0.6528 MB / 498.4 MB, free: 4.117 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.088e-05/0.1683, allocations: 33.7 kB / 498.4 MB, free: 4.078 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002774/0.1686, allocations: 364 kB / 498.8 MB, free: 3.715 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.1687, allocations: 173.5 kB / 498.9 MB, free: 3.543 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.478e-05/0.1688, allocations: 16 kB / 499 MB, free: 3.527 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.1689, allocations: 333.8 kB / 499.3 MB, free: 3.195 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005869/0.1695, allocations: 285.1 kB / 499.6 MB, free: 2.918 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000717/0.1703, allocations: 450.1 kB / 0.4883 GB, free: 2.406 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006527/0.1709, allocations: 337.4 kB / 0.4886 GB, free: 2.082 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.1709, allocations: 4 kB / 0.4886 GB, free: 2.078 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001554/0.1725, allocations: 0.8344 MB / 0.4894 GB, free: 1.238 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001688/0.1727, allocations: 217.4 kB / 0.4896 GB, free: 0.9609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.1727, allocations: 7.938 kB / 0.4896 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.1727, allocations: 8 kB / 0.4897 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006672/0.1734, allocations: 163.8 kB / 0.4898 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.62e-05/0.1734, allocations: 11.95 kB / 0.4898 GB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005064/0.1739, allocations: 95.53 kB / 0.4899 GB, free: 0.6797 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.596e-05/0.174, allocations: 24 kB / 0.4899 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.033e-06/0.174, allocations: 4 kB / 0.4899 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001388/0.1754, allocations: 0.7184 MB / 0.4906 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1754, allocations: 4 kB / 0.4906 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.947e-06/0.1754, allocations: 8 kB / 0.4906 GB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005994/0.176, allocations: 155.8 kB / 0.4908 GB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.1761, allocations: 4 kB / 0.4908 GB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004454/0.1765, allocations: 91.64 kB / 0.4909 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.926e-05/0.1766, allocations: 23.94 kB / 0.4909 GB, free: 15.65 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.0003753/0.1769, allocations: 293.6 kB / 0.4912 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/0.1771, allocations: 79.06 kB / 0.4913 GB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000183/0.1773, allocations: 90.2 kB / 0.4914 GB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.1773, allocations: 8 kB / 0.4914 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.1773, allocations: 0 / 0.4914 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1773, allocations: 0 / 0.4914 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001325/0.1787, allocations: 0.8609 MB / 0.4922 GB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1787, allocations: 0 / 0.4922 GB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006233/0.1793, allocations: 115.9 kB / 0.4923 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.1793, allocations: 0 / 0.4923 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.756e-05/0.1794, allocations: 24 kB / 0.4923 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.1794, allocations: 0 / 0.4923 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.1794, allocations: 4.094 kB / 0.4923 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.1813, allocations: 1.211 MB / 0.4935 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000237/0.1816, allocations: 196.1 kB / 0.4937 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.639e-05/0.1817, allocations: 16 kB / 0.4937 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005226/0.1822, allocations: 63.94 kB / 0.4938 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.1823, allocations: 39.88 kB / 0.4938 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-05/0.1824, allocations: 12 kB / 0.4938 GB, free: 12.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00059/0.183, allocations: 459 kB / 0.4943 GB, free: 12.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.183, allocations: 0 / 0.4943 GB, free: 12.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008733/0.1838, allocations: 192 kB / 0.4945 GB, free: 11.92 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.0001466/0.184, allocations: 115 kB / 0.4946 GB, free: 11.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00206/0.1861, allocations: 1.012 MB / 0.4956 GB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.1861, allocations: 4 kB / 0.4956 GB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006238/0.1867, allocations: 295.7 kB / 0.4958 GB, free: 10.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.1877, allocations: 180.4 kB / 0.496 GB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002922/0.1907, allocations: 1.755 MB / 0.4977 GB, free: 8.535 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000544/0.1912, allocations: 0.9575 MB / 0.4987 GB, free: 7.551 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000565/0.1918, allocations: 152.8 kB / 0.4988 GB, free: 7.398 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000156/0.192, allocations: 43.38 kB / 0.4988 GB, free: 7.355 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.192, allocations: 8 kB / 0.4989 GB, free: 7.348 MB / 382.1 MB Notification: Performance of Templates: time 0.01277/0.2048, allocations: 6.498 MB / 0.5052 GB, free: 0.9102 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches