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.00155/0.001551, allocations: 117 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001663/0.001663, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.482/1.482, allocations: 227.4 MB / 246.4 MB, free: 10.82 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2994/0.2994, allocations: 46.1 MB / 343.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 76.05 kB / 417 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1345, allocations: 62.44 MB / 479.5 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.006417/0.1409, allocations: 3.346 MB / 482.8 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003827/0.1448, allocations: 1.579 MB / 484.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008311/0.1457, allocations: 19.88 kB / 484.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000756/0.1464, allocations: 111.2 kB / 484.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008266/0.1474, allocations: 151 kB / 484.7 MB, free: 428 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001563/0.1489, allocations: 0.4939 MB / 485.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001407/0.1503, allocations: 0.9123 MB / 486.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004522/0.1508, allocations: 234.4 kB / 486.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006201/0.1514, allocations: 362.4 kB / 486.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000497/0.152, allocations: 402.1 kB / 487.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.069e-05/0.1521, allocations: 64 kB / 487.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001279/0.1522, allocations: 68 kB / 487.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002237/0.1524, allocations: 203.3 kB / 487.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002964/0.1527, allocations: 345.8 kB / 487.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007818/0.1535, allocations: 0.7512 MB / 488.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.1535, allocations: 0 / 488.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.81e-07/0.1535, allocations: 0 / 488.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.1536, allocations: 0 / 488.5 MB, free: 12.6 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.002296/0.1559, allocations: 1.16 MB / 489.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.1559, allocations: 9.109 kB / 489.7 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002631/0.1562, allocations: 99.89 kB / 489.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008407/0.157, allocations: 0.5545 MB / 490.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.065e-05/0.1571, allocations: 37.38 kB / 490.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.1572, allocations: 64.27 kB / 490.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001128/0.1583, allocations: 0.6224 MB / 491 MB, free: 9.914 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.1584, allocations: 0 / 491 MB, free: 9.914 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.003e-05/0.1584, allocations: 20 kB / 491 MB, free: 9.895 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.1584, allocations: 19.92 kB / 491.1 MB, free: 9.875 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.1595, allocations: 461.8 kB / 491.5 MB, free: 9.422 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003557/0.1631, allocations: 2.655 MB / 494.2 MB, free: 6.668 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.1642, allocations: 0.5507 MB / 494.7 MB, free: 6.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005415/0.1647, allocations: 246.4 kB / 495 MB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.864e-05/0.1648, allocations: 8 kB / 495 MB, free: 5.832 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.1648, allocations: 38.55 kB / 495 MB, free: 5.785 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.853e-06/0.1648, allocations: 3.938 kB / 495 MB, free: 5.781 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002501/0.1673, allocations: 1.143 MB / 496.2 MB, free: 4.629 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.1675, allocations: 158.2 kB / 496.3 MB, free: 4.438 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008758/0.1683, allocations: 0.6567 MB / 497 MB, free: 3.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.684e-05/0.1684, allocations: 37.7 kB / 497 MB, free: 3.727 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002939/0.1687, allocations: 364 kB / 497.4 MB, free: 3.363 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/0.1689, allocations: 169.5 kB / 497.5 MB, free: 3.195 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001881/0.1691, allocations: 122.2 kB / 497.6 MB, free: 3.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.1692, allocations: 329.9 kB / 498 MB, free: 2.742 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006244/0.1698, allocations: 275.3 kB / 498.2 MB, free: 2.469 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007459/0.1706, allocations: 440.8 kB / 498.7 MB, free: 1.973 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001283/0.1719, allocations: 0.6779 MB / 499.3 MB, free: 1.238 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1719, allocations: 0 / 499.3 MB, free: 1.238 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001602/0.1735, allocations: 0.7912 MB / 0.4884 GB, free: 452 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.1735, allocations: 12.09 kB / 0.4884 GB, free: 440 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.1736, allocations: 4 kB / 0.4884 GB, free: 436 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.1736, allocations: 8 kB / 0.4884 GB, free: 428 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006759/0.1743, allocations: 143.8 kB / 0.4886 GB, free: 284 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.743e-05/0.1743, allocations: 11.92 kB / 0.4886 GB, free: 272 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005462/0.1748, allocations: 87.48 kB / 0.4887 GB, free: 184 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.906e-05/0.1749, allocations: 27.98 kB / 0.4887 GB, free: 156 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000782/0.1757, allocations: 409.5 kB / 0.4891 GB, free: 15.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006595/0.1764, allocations: 421.2 kB / 0.4895 GB, free: 15.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001148/0.1775, allocations: 0.6546 MB / 0.4901 GB, free: 14.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.995e-06/0.1775, allocations: 0 / 0.4901 GB, free: 14.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=77) (initialization_lambda0): time 0.001469/0.179, allocations: 0.7765 MB / 0.4909 GB, free: 13.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.179, allocations: 8 kB / 0.4909 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.179, allocations: 4 kB / 0.4909 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.1791, allocations: 11.98 kB / 0.4909 GB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000608/0.1797, allocations: 139.8 kB / 0.491 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.1797, allocations: 19.81 kB / 0.4911 GB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005218/0.1802, allocations: 79.78 kB / 0.4911 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.366e-05/0.1803, allocations: 28 kB / 0.4912 GB, free: 13.49 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.000194/0.1805, allocations: 216 kB / 0.4914 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.1806, allocations: 75.06 kB / 0.4914 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002023/0.1808, allocations: 94.2 kB / 0.4915 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.1808, allocations: 11.88 kB / 0.4915 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.1809, allocations: 8 kB / 0.4915 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1809, allocations: 0 / 0.4915 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001276/0.1821, allocations: 0.8454 MB / 0.4924 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.1822, allocations: 0 / 0.4924 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006449/0.1828, allocations: 107.8 kB / 0.4925 GB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.1828, allocations: 4 kB / 0.4925 GB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.734e-05/0.1829, allocations: 16 kB / 0.4925 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.1829, allocations: 0 / 0.4925 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1829, allocations: 4 kB / 0.4925 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001927/0.1848, allocations: 1.133 MB / 0.4936 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002149/0.1851, allocations: 200.1 kB / 0.4938 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.652e-05/0.1852, allocations: 12 kB / 0.4938 GB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005443/0.1857, allocations: 51.94 kB / 0.4939 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.1858, allocations: 39.95 kB / 0.4939 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.397e-05/0.1859, allocations: 15.98 kB / 0.4939 GB, free: 10.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00065/0.1865, allocations: 463 kB / 0.4944 GB, free: 10.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1865, allocations: 0 / 0.4944 GB, free: 10.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007691/0.1873, allocations: 188 kB / 0.4945 GB, free: 9.934 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.0001502/0.1875, allocations: 119.6 kB / 0.4946 GB, free: 9.809 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002217/0.1897, allocations: 0.9932 MB / 0.4956 GB, free: 8.816 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1897, allocations: 0 / 0.4956 GB, free: 8.816 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006184/0.1903, allocations: 283.6 kB / 0.4959 GB, free: 8.539 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.1914, allocations: 193.4 kB / 0.4961 GB, free: 8.359 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002976/0.1944, allocations: 1.77 MB / 0.4978 GB, free: 6.551 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005042/0.1949, allocations: 0.9497 MB / 0.4987 GB, free: 5.574 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005284/0.1955, allocations: 148.8 kB / 0.4989 GB, free: 5.426 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001676/0.1957, allocations: 47.42 kB / 0.4989 GB, free: 5.379 MB / 382.1 MB Notification: Performance of SimCode: time 6.32e-07/0.1957, allocations: 0 / 0.4989 GB, free: 5.379 MB / 382.1 MB Notification: Performance of Templates: time 0.2155/0.4111, allocations: 7.112 MB / 0.5059 GB, free: 40.23 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