Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.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.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_trunk_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_trunk_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001363/0.001363, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001332/0.001332, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.8 MB, free: 10.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2838/0.2838, allocations: 46.12 MB / 344.1 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 79.67 kB / 417.6 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1302, allocations: 62.44 MB / 480 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.006115/0.1364, allocations: 4.348 MB / 484.4 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003243/0.1396, allocations: 1.578 MB / 485.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006007/0.1403, allocations: 35.81 kB / 486 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004074/0.1407, allocations: 158.2 kB / 486.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004072/0.1411, allocations: 162.3 kB / 486.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001298/0.1425, allocations: 0.5986 MB / 486.9 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001047/0.1435, allocations: 1.019 MB / 487.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000658/0.1442, allocations: 431.1 kB / 488.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004115/0.1446, allocations: 362.3 kB / 488.7 MB, free: 12.58 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004093/0.145, allocations: 393.6 kB / 489.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001302/0.1451, allocations: 88 kB / 489.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.1453, allocations: 84 kB / 489.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001818/0.1455, allocations: 199.2 kB / 489.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003765/0.1459, allocations: 441.2 kB / 489.9 MB, free: 11.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009764/0.1468, allocations: 0.9734 MB / 490.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1469, allocations: 0 / 490.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1469, allocations: 0 / 490.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.1469, allocations: 0 / 490.8 MB, free: 10.42 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.00182/0.1487, allocations: 1.292 MB / 492.1 MB, free: 9.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.1487, allocations: 8.031 kB / 492.1 MB, free: 9.062 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001755/0.1489, allocations: 115.6 kB / 492.2 MB, free: 8.949 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008254/0.1498, allocations: 0.6242 MB / 492.9 MB, free: 8.285 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.045e-05/0.1498, allocations: 49.69 kB / 492.9 MB, free: 8.238 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.1499, allocations: 68.36 kB / 493 MB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/0.1512, allocations: 0.769 MB / 493.8 MB, free: 7.336 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.1512, allocations: 3.938 kB / 493.8 MB, free: 7.332 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.782e-05/0.1513, allocations: 28 kB / 493.8 MB, free: 7.305 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.1513, allocations: 16 kB / 493.8 MB, free: 7.289 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001152/0.1524, allocations: 0.5461 MB / 494.3 MB, free: 6.742 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003289/0.1557, allocations: 2.737 MB / 497.1 MB, free: 3.906 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.1571, allocations: 0.6672 MB / 497.7 MB, free: 3.203 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005151/0.1576, allocations: 275.3 kB / 498 MB, free: 2.922 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.371e-05/0.1577, allocations: 11.94 kB / 498 MB, free: 2.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/0.1577, allocations: 42.55 kB / 498.1 MB, free: 2.859 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.114e-06/0.1577, allocations: 0 / 498.1 MB, free: 2.859 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001758/0.1595, allocations: 0.8007 MB / 498.9 MB, free: 2.055 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001491/0.1597, allocations: 342.1 kB / 499.2 MB, free: 1.641 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007532/0.1604, allocations: 0.7007 MB / 499.9 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.954e-05/0.1605, allocations: 37.7 kB / 499.9 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003222/0.1608, allocations: 436.4 kB / 0.4886 GB, free: 464 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.1609, allocations: 185.3 kB / 0.4888 GB, free: 276 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.1611, allocations: 106.2 kB / 0.4889 GB, free: 164 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.1613, allocations: 333.9 kB / 0.4892 GB, free: 15.83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000522/0.1618, allocations: 235 kB / 0.4895 GB, free: 15.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006167/0.1624, allocations: 391.4 kB / 0.4898 GB, free: 15.15 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.1635, allocations: 0.5609 MB / 0.4904 GB, free: 14.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1635, allocations: 4 kB / 0.4904 GB, free: 14.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002683/0.1662, allocations: 1.029 MB / 0.4914 GB, free: 13.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.1662, allocations: 8.281 kB / 0.4914 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.1662, allocations: 8 kB / 0.4914 GB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.1674, allocations: 323.1 kB / 0.4917 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005586/0.168, allocations: 123.9 kB / 0.4918 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009061/0.1771, allocations: 7.276 MB / 0.4989 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006334/0.1777, allocations: 79.39 kB / 0.499 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.48e-05/0.1778, allocations: 24 kB / 0.499 GB, free: 5.098 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007324/0.1786, allocations: 349.2 kB / 0.4994 GB, free: 4.754 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005327/0.1791, allocations: 355.4 kB / 0.4997 GB, free: 4.344 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008885/0.18, allocations: 0.4884 MB / 0.5002 GB, free: 3.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.946e-06/0.1801, allocations: 0 / 0.5002 GB, free: 3.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001688/0.1817, allocations: 0.7424 MB / 0.5009 GB, free: 3.066 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.1818, allocations: 11.98 kB / 0.5009 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.1818, allocations: 0 / 0.5009 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004881/0.1823, allocations: 145.8 kB / 0.5011 GB, free: 2.906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007204/0.183, allocations: 171.8 kB / 0.5012 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2164/0.3994, allocations: 3.419 MB / 0.5046 GB, free: 38.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000683/0.4001, allocations: 67.89 kB / 0.5046 GB, free: 38.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.516e-05/0.4002, allocations: 21.53 kB / 0.5046 GB, free: 38.91 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.0002112/0.4004, allocations: 217.8 kB / 0.5049 GB, free: 38.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000201/0.4006, allocations: 92.12 kB / 0.5049 GB, free: 38.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002289/0.4008, allocations: 97.52 kB / 0.505 GB, free: 38.72 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.4009, allocations: 6 kB / 0.505 GB, free: 38.72 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.4009, allocations: 4.375 kB / 0.505 GB, free: 38.72 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.4009, allocations: 6.375 kB / 0.5051 GB, free: 38.72 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001049/0.4019, allocations: 0.7381 MB / 0.5058 GB, free: 38.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.4019, allocations: 0 / 0.5058 GB, free: 38.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005494/0.4025, allocations: 110.2 kB / 0.5059 GB, free: 38.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.4025, allocations: 4.531 kB / 0.5059 GB, free: 38.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.32e-05/0.4026, allocations: 9.328 kB / 0.5059 GB, free: 38.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/0.4026, allocations: 2.906 kB / 0.5059 GB, free: 38.53 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.4026, allocations: 1.5 kB / 0.5059 GB, free: 38.53 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001756/0.4043, allocations: 1.213 MB / 0.5071 GB, free: 38.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00022/0.4046, allocations: 216.6 kB / 0.5073 GB, free: 38.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.024e-05/0.4047, allocations: 17.41 kB / 0.5073 GB, free: 38.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000513/0.4052, allocations: 44.83 kB / 0.5073 GB, free: 38.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.561e-05/0.4053, allocations: 33.08 kB / 0.5074 GB, free: 38.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/0.4053, allocations: 14.89 kB / 0.5074 GB, free: 38.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005795/0.4059, allocations: 483.3 kB / 0.5079 GB, free: 37.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4059, allocations: 0 / 0.5079 GB, free: 37.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009485/0.4069, allocations: 284.8 kB / 0.5081 GB, free: 37.95 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.0001185/0.407, allocations: 115.7 kB / 0.5082 GB, free: 37.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00392/0.4109, allocations: 1.906 MB / 0.5101 GB, free: 37.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.4109, allocations: 1.156 kB / 0.5101 GB, free: 37.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005998/0.4115, allocations: 281.9 kB / 0.5104 GB, free: 37.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001544/0.4131, allocations: 232.3 kB / 0.5106 GB, free: 36.99 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002416/0.4155, allocations: 1.497 MB / 0.5121 GB, free: 36.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004263/0.416, allocations: 0.9879 MB / 0.513 GB, free: 35.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000413/0.4164, allocations: 90.14 kB / 0.5131 GB, free: 35.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/0.4165, allocations: 48.52 kB / 0.5131 GB, free: 35.48 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4165, allocations: 0 / 0.5131 GB, free: 35.48 MB / 382.1 MB Notification: Performance of Templates: time 0.02547/0.442, allocations: 12.18 MB / 0.525 GB, free: 31.8 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches