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.001121/0.001121, allocations: 104.2 kB / 17.2 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001223/0.001224, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 246.3 MB, free: 10.84 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.209/0.209, allocations: 46.11 MB / 343.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 77.25 kB / 416.8 MB, free: 20.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1413, allocations: 62.45 MB / 479.3 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.004875/0.1462, allocations: 3.34 MB / 482.6 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003753/0.15, allocations: 1.595 MB / 484.2 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006792/0.1507, allocations: 19.88 kB / 484.2 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006834/0.1514, allocations: 111.2 kB / 484.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005247/0.152, allocations: 158.3 kB / 484.5 MB, free: 488 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001316/0.1533, allocations: 0.491 MB / 485 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008616/0.1542, allocations: 0.8575 MB / 485.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003902/0.1546, allocations: 218.4 kB / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004421/0.1551, allocations: 326.4 kB / 486.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004485/0.1555, allocations: 378.1 kB / 486.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.055e-05/0.1556, allocations: 32 kB / 486.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001165/0.1557, allocations: 36 kB / 486.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002039/0.1559, allocations: 179.2 kB / 487 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002645/0.1562, allocations: 301.9 kB / 487.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006693/0.1569, allocations: 0.7199 MB / 488 MB, free: 12.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1569, allocations: 0 / 488 MB, free: 12.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.1569, allocations: 0 / 488 MB, free: 12.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.1569, allocations: 0 / 488 MB, free: 12.95 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.002328/0.1593, allocations: 1.156 MB / 489.2 MB, free: 11.74 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.1593, allocations: 17.94 kB / 489.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002616/0.1596, allocations: 95.91 kB / 489.3 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008685/0.1605, allocations: 0.5662 MB / 489.8 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.862e-05/0.1605, allocations: 37.38 kB / 489.9 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.441e-05/0.1606, allocations: 52.28 kB / 489.9 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.1617, allocations: 0.6224 MB / 490.6 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.1618, allocations: 4 kB / 490.6 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.826e-05/0.1618, allocations: 16 kB / 490.6 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.666e-05/0.1618, allocations: 12 kB / 490.6 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.1629, allocations: 465.8 kB / 491 MB, free: 9.773 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003621/0.1665, allocations: 2.667 MB / 493.7 MB, free: 7.008 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.1676, allocations: 0.5456 MB / 494.2 MB, free: 6.438 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005256/0.1681, allocations: 254.4 kB / 494.5 MB, free: 6.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.648e-05/0.1682, allocations: 4 kB / 494.5 MB, free: 6.176 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.405e-05/0.1682, allocations: 38.56 kB / 494.5 MB, free: 6.129 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.565e-06/0.1682, allocations: 0 / 494.5 MB, free: 6.129 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002473/0.1707, allocations: 1.132 MB / 495.7 MB, free: 4.984 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.316e-05/0.1708, allocations: 158.2 kB / 495.8 MB, free: 4.793 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008944/0.1717, allocations: 0.6567 MB / 496.5 MB, free: 4.125 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.593e-05/0.1718, allocations: 37.7 kB / 496.5 MB, free: 4.082 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002907/0.1721, allocations: 360 kB / 496.9 MB, free: 3.723 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.1722, allocations: 173.5 kB / 497 MB, free: 3.551 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001985/0.1724, allocations: 118.2 kB / 497.2 MB, free: 3.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1726, allocations: 337.9 kB / 497.5 MB, free: 3.094 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006353/0.1732, allocations: 275.2 kB / 497.8 MB, free: 2.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007053/0.1739, allocations: 432.8 kB / 498.2 MB, free: 2.332 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001252/0.1752, allocations: 0.6741 MB / 498.9 MB, free: 1.598 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.1752, allocations: 0 / 498.9 MB, free: 1.598 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001577/0.1768, allocations: 0.7908 MB / 499.6 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.557e-05/0.1768, allocations: 11.19 kB / 499.7 MB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.1768, allocations: 8 kB / 499.7 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.354e-05/0.1769, allocations: 8 kB / 499.7 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006752/0.1776, allocations: 155.7 kB / 499.8 MB, free: 0.625 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/0.1776, allocations: 8 kB / 499.8 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005079/0.1781, allocations: 87.47 kB / 499.9 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.511e-05/0.1781, allocations: 24 kB / 499.9 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007266/0.1789, allocations: 405.5 kB / 0.4886 GB, free: 108 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006472/0.1795, allocations: 421.2 kB / 0.489 GB, free: 15.63 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001146/0.1807, allocations: 0.6642 MB / 0.4897 GB, free: 14.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.206e-06/0.1807, allocations: 0 / 0.4897 GB, free: 14.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=77) (initialization_lambda0): time 0.001444/0.1822, allocations: 0.7736 MB / 0.4904 GB, free: 14.13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.1822, allocations: 4 kB / 0.4904 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1822, allocations: 4 kB / 0.4904 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.697e-06/0.1822, allocations: 8 kB / 0.4904 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006028/0.1828, allocations: 147.8 kB / 0.4906 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.1828, allocations: 15.88 kB / 0.4906 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005012/0.1834, allocations: 79.66 kB / 0.4907 GB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4e-05/0.1834, allocations: 20 kB / 0.4907 GB, free: 13.86 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002021/0.1836, allocations: 224 kB / 0.4909 GB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.1838, allocations: 75.06 kB / 0.491 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001916/0.184, allocations: 90.2 kB / 0.4911 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.186e-06/0.184, allocations: 15.94 kB / 0.4911 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.437e-06/0.184, allocations: 0 / 0.4911 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.184, allocations: 7.984 kB / 0.4911 GB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/0.1853, allocations: 0.8493 MB / 0.4919 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1853, allocations: 0 / 0.4919 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006577/0.186, allocations: 107.8 kB / 0.492 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.186, allocations: 4 kB / 0.492 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.72e-05/0.186, allocations: 19.98 kB / 0.492 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.1861, allocations: 4 kB / 0.492 GB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.1861, allocations: 3.938 kB / 0.492 GB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.188, allocations: 1.133 MB / 0.4931 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00024/0.1883, allocations: 196.1 kB / 0.4933 GB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.114e-05/0.1884, allocations: 16 kB / 0.4933 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005497/0.1889, allocations: 43.94 kB / 0.4934 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/0.1891, allocations: 39.94 kB / 0.4934 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.128e-05/0.1891, allocations: 16 kB / 0.4934 GB, free: 10.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006613/0.1898, allocations: 463 kB / 0.4939 GB, free: 10.47 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1898, allocations: 0 / 0.4939 GB, free: 10.47 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008005/0.1906, allocations: 192 kB / 0.4941 GB, free: 10.28 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001553/0.1907, allocations: 111.6 kB / 0.4942 GB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002116/0.1929, allocations: 0.963 MB / 0.4951 GB, free: 9.203 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1929, allocations: 0 / 0.4951 GB, free: 9.203 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006183/0.1935, allocations: 287.5 kB / 0.4954 GB, free: 8.922 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.1946, allocations: 181.1 kB / 0.4956 GB, free: 8.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00295/0.1976, allocations: 1.755 MB / 0.4973 GB, free: 6.957 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004551/0.1981, allocations: 0.9497 MB / 0.4982 GB, free: 5.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000516/0.1986, allocations: 148.7 kB / 0.4983 GB, free: 5.832 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001669/0.1987, allocations: 43.44 kB / 0.4984 GB, free: 5.789 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1988, allocations: 3.938 kB / 0.4984 GB, free: 5.785 MB / 382.1 MB Notification: Performance of Templates: time 0.232/0.4307, allocations: 6.797 MB / 0.505 GB, free: 40.9 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