Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.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.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID") translateModel(ModelicaTest.Blocks.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 106.1 kB / 18.3 MB, free: 4.887 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.001382/0.001382, allocations: 195.3 kB / 19.23 MB, free: 3.961 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.387/1.387, allocations: 222.9 MB / 242.9 MB, free: 15.21 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.217/0.217, allocations: 44.18 MB / 337.3 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 57.53 kB / 409.1 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1395, allocations: 60.83 MB / 469.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.005615/0.1451, allocations: 4.355 MB / 474.3 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003101/0.1483, allocations: 1.558 MB / 475.8 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004978/0.1488, allocations: 31.88 kB / 475.9 MB, free: 8.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000384/0.1492, allocations: 162.2 kB / 476 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003946/0.1496, allocations: 170.3 kB / 476.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001162/0.1508, allocations: 0.5752 MB / 476.8 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009187/0.1517, allocations: 1.035 MB / 477.8 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006219/0.1524, allocations: 427.1 kB / 478.2 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003437/0.1527, allocations: 362.3 kB / 478.6 MB, free: 5.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003396/0.1531, allocations: 397.7 kB / 479 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001216/0.1532, allocations: 84 kB / 479 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/0.1533, allocations: 91.94 kB / 479.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001544/0.1535, allocations: 199.2 kB / 479.3 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003252/0.1538, allocations: 437.2 kB / 479.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008034/0.1546, allocations: 0.985 MB / 480.7 MB, free: 3.504 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1546, allocations: 0 / 480.7 MB, free: 3.504 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1546, allocations: 0 / 480.7 MB, free: 3.504 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.1546, allocations: 0 / 480.7 MB, free: 3.504 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001929/0.1566, allocations: 1.292 MB / 482 MB, free: 2.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.1566, allocations: 12.03 kB / 482 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001621/0.1568, allocations: 115.5 kB / 482.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007517/0.1576, allocations: 0.6241 MB / 482.8 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.021e-05/0.1576, allocations: 45.69 kB / 482.8 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.399e-05/0.1577, allocations: 68.38 kB / 482.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.1589, allocations: 0.7392 MB / 483.6 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.159, allocations: 7.938 kB / 483.6 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.851e-05/0.159, allocations: 24 kB / 483.7 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.159, allocations: 20 kB / 483.7 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001189/0.1602, allocations: 0.5386 MB / 484.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003541/0.1638, allocations: 2.722 MB / 486.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001464/0.1653, allocations: 0.6683 MB / 487.6 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000559/0.1658, allocations: 283.3 kB / 487.9 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.461e-05/0.1659, allocations: 15.94 kB / 487.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/0.166, allocations: 46.55 kB / 487.9 MB, free: 11.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.204e-06/0.166, allocations: 0 / 487.9 MB, free: 11.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001897/0.1679, allocations: 0.7927 MB / 488.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001823/0.1681, allocations: 239.3 kB / 489 MB, free: 10.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000897/0.169, allocations: 0.6967 MB / 489.7 MB, free: 10.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.23e-05/0.169, allocations: 37.7 kB / 489.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003308/0.1694, allocations: 428.5 kB / 490.1 MB, free: 9.734 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001592/0.1695, allocations: 193.3 kB / 490.3 MB, free: 9.543 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/0.1697, allocations: 102.2 kB / 490.4 MB, free: 9.438 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.1699, allocations: 330 kB / 490.7 MB, free: 9.109 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005179/0.1704, allocations: 227 kB / 491 MB, free: 8.887 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006281/0.171, allocations: 364 kB / 491.3 MB, free: 8.477 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001196/0.1722, allocations: 0.5522 MB / 491.9 MB, free: 7.887 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.1722, allocations: 0 / 491.9 MB, free: 7.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00278/0.175, allocations: 1.051 MB / 492.9 MB, free: 6.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.1751, allocations: 4 kB / 492.9 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.1751, allocations: 7.938 kB / 492.9 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001294/0.1764, allocations: 323.4 kB / 493.2 MB, free: 6.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005768/0.177, allocations: 127.9 kB / 493.4 MB, free: 6.355 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0101/0.1871, allocations: 7.259 MB / 0.4889 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007327/0.1879, allocations: 87.39 kB / 0.489 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.188, allocations: 20 kB / 0.489 GB, free: 14.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009076/0.1889, allocations: 345.2 kB / 0.4893 GB, free: 14.08 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005713/0.1895, allocations: 324.1 kB / 0.4896 GB, free: 13.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001006/0.1905, allocations: 0.501 MB / 0.4901 GB, free: 13.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.166e-06/0.1905, allocations: 0 / 0.4901 GB, free: 13.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001966/0.1925, allocations: 0.7468 MB / 0.4909 GB, free: 12.42 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.1925, allocations: 4.281 kB / 0.4909 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.1926, allocations: 8 kB / 0.4909 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005372/0.1931, allocations: 141.6 kB / 0.491 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000731/0.1938, allocations: 171.8 kB / 0.4912 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004074/0.1979, allocations: 3.427 MB / 0.4945 GB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005824/0.1985, allocations: 71.33 kB / 0.4946 GB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-05/0.1986, allocations: 16 kB / 0.4946 GB, free: 8.305 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (PID4.I.local_reset,PID3.I.local_reset,PID2.I.local_reset,PID1.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002698/0.1989, allocations: 220.1 kB / 0.4948 GB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002972/0.1992, allocations: 94.94 kB / 0.4949 GB, free: 7.988 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000249/0.1995, allocations: 95.16 kB / 0.495 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.1995, allocations: 4 kB / 0.495 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.1995, allocations: 4 kB / 0.495 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.1995, allocations: 0 / 0.495 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001395/0.2009, allocations: 0.7389 MB / 0.4957 GB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.2009, allocations: 0 / 0.4957 GB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005707/0.2015, allocations: 111.9 kB / 0.4958 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.2015, allocations: 0 / 0.4958 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.288e-05/0.2016, allocations: 16 kB / 0.4958 GB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.2016, allocations: 4 kB / 0.4958 GB, free: 6.969 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.2016, allocations: 3.984 kB / 0.4958 GB, free: 6.965 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001985/0.2036, allocations: 1.205 MB / 0.497 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003111/0.2039, allocations: 215.8 kB / 0.4972 GB, free: 5.516 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.922e-05/0.204, allocations: 12 kB / 0.4972 GB, free: 5.504 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005322/0.2045, allocations: 35.95 kB / 0.4973 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.894e-05/0.2047, allocations: 39.89 kB / 0.4973 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-05/0.2047, allocations: 12 kB / 0.4973 GB, free: 5.418 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006296/0.2053, allocations: 491 kB / 0.4978 GB, free: 4.941 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2053, allocations: 7.938 kB / 0.4978 GB, free: 4.934 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00116/0.2065, allocations: 275.1 kB / 0.4981 GB, free: 4.664 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PID1.I.y,firstOrder1.y,PID2.I.y,firstOrder2.y,PID3.I.y,firstOrder3.y,PID4.I.y,firstOrder4.y) * 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 (52): * Single equations (assignments): 52 * 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.0002115/0.2067, allocations: 119 kB / 0.4982 GB, free: 4.535 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004455/0.2112, allocations: 1.888 MB / 0.5 GB, free: 2.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/0.2112, allocations: 0 / 0.5 GB, free: 2.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006593/0.2119, allocations: 279.7 kB / 0.5003 GB, free: 2.297 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001586/0.2135, allocations: 245.5 kB / 0.5005 GB, free: 2.074 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003065/0.2166, allocations: 1.555 MB / 0.502 GB, free: 480 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2272/0.4438, allocations: 0.9831 MB / 0.503 GB, free: 47.28 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003463/0.4442, allocations: 47.14 kB / 0.503 GB, free: 47.28 MB / 382.1 MB Notification: Performance of SimCode: time 1.723e-06/0.4442, allocations: 0.7812 kB / 0.503 GB, free: 47.28 MB / 382.1 MB Notification: Performance of Templates: time 0.02762/0.4718, allocations: 17.11 MB / 0.5198 GB, free: 41.41 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches