Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 105.1 kB / 16.64 MB, free: 6.812 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.001409/0.001409, allocations: 186.5 kB / 17.56 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.726/1.726, allocations: 205.1 MB / 223.4 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.214/0.214, allocations: 43.51 MB / 314.3 MB, free: 0.7227 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 66.81 kB / 382.9 MB, free: 56.88 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.104, allocations: 57.79 MB / 440.7 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004697/0.1088, allocations: 4.399 MB / 445.1 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002772/0.1116, allocations: 1.571 MB / 446.6 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009375/0.1125, allocations: 39.81 kB / 446.7 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004727/0.113, allocations: 110.9 kB / 446.8 MB, free: 1.227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005859/0.1136, allocations: 130.8 kB / 446.9 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.1148, allocations: 0.5261 MB / 447.4 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001224/0.116, allocations: 1.046 MB / 448.5 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007447/0.1168, allocations: 447.4 kB / 448.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004994/0.1173, allocations: 366.2 kB / 449.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004827/0.1178, allocations: 389.7 kB / 449.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001771/0.118, allocations: 84 kB / 449.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001443/0.1181, allocations: 88 kB / 449.8 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001688/0.1183, allocations: 203.2 kB / 450 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004492/0.1188, allocations: 453.2 kB / 450.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008169/0.1196, allocations: 0.7602 MB / 451.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1196, allocations: 0 / 451.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1196, allocations: 0 / 451.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.747e-05/0.1196, allocations: 0 / 451.2 MB, free: 12.75 MB / 334.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.002293/0.1219, allocations: 1.3 MB / 452.5 MB, free: 11.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.122, allocations: 11.97 kB / 452.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/0.1222, allocations: 119.4 kB / 452.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008141/0.123, allocations: 0.6514 MB / 453.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.987e-05/0.123, allocations: 49.69 kB / 453.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.1231, allocations: 60.38 kB / 453.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.1244, allocations: 0.7469 MB / 454.1 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.1245, allocations: 0 / 454.1 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.77e-05/0.1245, allocations: 28 kB / 454.2 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/0.1245, allocations: 16 kB / 454.2 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.1257, allocations: 0.5459 MB / 454.7 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003473/0.1291, allocations: 2.733 MB / 457.5 MB, free: 6.246 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.1305, allocations: 0.6707 MB / 458.1 MB, free: 5.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005144/0.131, allocations: 287.2 kB / 458.4 MB, free: 5.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.048e-05/0.131, allocations: 8 kB / 458.4 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.929e-05/0.1311, allocations: 38.56 kB / 458.5 MB, free: 5.195 MB / 334.1 MB Notification: Performance of pre-optimization done (n=52): time 2.715e-06/0.1311, allocations: 0 / 458.5 MB, free: 5.195 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.001803/0.1329, allocations: 0.7921 MB / 459.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001896/0.1331, allocations: 251.3 kB / 459.5 MB, free: 4.098 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008963/0.134, allocations: 0.7088 MB / 460.2 MB, free: 3.379 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.935e-05/0.1341, allocations: 37.7 kB / 460.2 MB, free: 3.336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003896/0.1345, allocations: 444.3 kB / 460.7 MB, free: 2.898 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.1346, allocations: 185.3 kB / 460.9 MB, free: 2.715 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001854/0.1348, allocations: 102.2 kB / 461 MB, free: 2.609 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.135, allocations: 330 kB / 461.3 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006042/0.1356, allocations: 231 kB / 461.5 MB, free: 2.051 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009356/0.1365, allocations: 360 kB / 461.9 MB, free: 1.648 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001743/0.1383, allocations: 0.5566 MB / 462.4 MB, free: 1.055 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.1383, allocations: 4 kB / 462.4 MB, free: 1.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003951/0.1423, allocations: 1.045 MB / 463.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.1423, allocations: 12.28 kB / 463.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.1424, allocations: 0 / 463.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001713/0.1441, allocations: 323.1 kB / 463.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009033/0.145, allocations: 119.9 kB / 463.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01359/0.1586, allocations: 7.271 MB / 471.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009568/0.1596, allocations: 79.34 kB / 471.3 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001232/0.1598, allocations: 20 kB / 471.3 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001162/0.161, allocations: 349.2 kB / 471.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009062/0.1619, allocations: 328 kB / 471.9 MB, free: 6.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001606/0.1635, allocations: 0.508 MB / 472.5 MB, free: 6.344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.609e-06/0.1635, allocations: 0 / 472.5 MB, free: 6.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.002974/0.1665, allocations: 0.7356 MB / 473.2 MB, free: 5.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.1666, allocations: 8.625 kB / 473.2 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.1666, allocations: 4 kB / 473.2 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009486/0.1675, allocations: 141.8 kB / 473.3 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001482/0.1691, allocations: 179.8 kB / 473.5 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006319/0.1754, allocations: 3.415 MB / 476.9 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.1764, allocations: 71.7 kB / 477 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.041e-05/0.1765, allocations: 23.98 kB / 477 MB, free: 1.477 MB / 350.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.0003493/0.1769, allocations: 224 kB / 477.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003809/0.1773, allocations: 90.88 kB / 477.3 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000312/0.1776, allocations: 99.39 kB / 477.4 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.301e-05/0.1777, allocations: 11.98 kB / 477.4 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.1777, allocations: 0 / 477.4 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.1777, allocations: 4 kB / 477.4 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001803/0.1795, allocations: 0.7428 MB / 478.2 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.1796, allocations: 0 / 478.2 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/0.1807, allocations: 103.9 kB / 478.3 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.307e-06/0.1807, allocations: 4 kB / 478.3 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.541e-05/0.1808, allocations: 12 kB / 478.3 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.329e-05/0.1808, allocations: 7.984 kB / 478.3 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.1808, allocations: 3.938 kB / 478.3 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00354/0.1844, allocations: 1.209 MB / 479.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004402/0.1849, allocations: 211.8 kB / 479.7 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001552/0.185, allocations: 8 kB / 479.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009552/0.186, allocations: 47.95 kB / 479.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.1862, allocations: 31.89 kB / 479.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.043e-05/0.1862, allocations: 19.94 kB / 479.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001047/0.1873, allocations: 499 kB / 480.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.1873, allocations: 0 / 480.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001693/0.189, allocations: 283.1 kB / 480.6 MB, free: 13.8 MB / 366.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.0002112/0.1893, allocations: 115.2 kB / 480.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006952/0.1962, allocations: 1.893 MB / 482.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.1963, allocations: 0 / 482.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005867/0.1969, allocations: 287.3 kB / 482.9 MB, free: 11.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001493/0.1984, allocations: 247.8 kB / 483.1 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002809/0.2012, allocations: 1.894 MB / 485 MB, free: 9.273 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005522/0.2018, allocations: 0.9887 MB / 486 MB, free: 8.254 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.202, allocations: 51.44 kB / 486.1 MB, free: 8.203 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.202, allocations: 0 / 486.1 MB, free: 8.203 MB / 366.1 MB Notification: Performance of Templates: time 0.02048/0.2224, allocations: 17.41 MB / 0.4917 GB, free: 6.797 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimPID/LimPID.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches