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.001019/0.001019, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.00115/0.00115, allocations: 192 kB / 18.56 MB, free: 4.434 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.312/1.312, allocations: 222.9 MB / 242.2 MB, free: 15.16 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.1973/0.1973, allocations: 44.17 MB / 336.6 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 56.06 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1293, allocations: 60.83 MB / 469.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.005645/0.135, allocations: 4.36 MB / 473.6 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003017/0.138, allocations: 1.547 MB / 475.2 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006159/0.1387, allocations: 35.81 kB / 475.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003957/0.1391, allocations: 158.2 kB / 475.3 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000352/0.1394, allocations: 174.2 kB / 475.5 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.1405, allocations: 0.5726 MB / 476.1 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008189/0.1413, allocations: 1.035 MB / 477.1 MB, free: 6.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005499/0.1419, allocations: 435.1 kB / 477.5 MB, free: 6.008 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/0.1422, allocations: 358.3 kB / 477.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003341/0.1425, allocations: 397.7 kB / 478.3 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001107/0.1426, allocations: 84 kB / 478.4 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.1428, allocations: 88 kB / 478.5 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001601/0.1429, allocations: 203.1 kB / 478.6 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002983/0.1432, allocations: 437.2 kB / 479.1 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007322/0.144, allocations: 0.9772 MB / 480.1 MB, free: 3.488 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.144, allocations: 4 kB / 480.1 MB, free: 3.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.144, allocations: 0 / 480.1 MB, free: 3.484 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.144, allocations: 4 kB / 480.1 MB, free: 3.48 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.0018/0.1458, allocations: 1.295 MB / 481.4 MB, free: 2.137 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.1458, allocations: 8.031 kB / 481.4 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.146, allocations: 115.5 kB / 481.5 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006809/0.1467, allocations: 0.6281 MB / 482.1 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.724e-05/0.1467, allocations: 49.69 kB / 482.2 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.1468, allocations: 64.38 kB / 482.2 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.148, allocations: 0.7425 MB / 483 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.148, allocations: 8 kB / 483 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.541e-05/0.1481, allocations: 24 kB / 483 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.1481, allocations: 16 kB / 483 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001075/0.1492, allocations: 0.5425 MB / 483.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002969/0.1521, allocations: 2.718 MB / 486.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.1534, allocations: 0.6671 MB / 486.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004834/0.1539, allocations: 287.2 kB / 487.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.933e-05/0.1539, allocations: 8 kB / 487.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.015e-05/0.1539, allocations: 46.5 kB / 487.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 1.643e-06/0.1539, allocations: 0 / 487.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001647/0.1556, allocations: 0.7917 MB / 488.1 MB, free: 11.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.1557, allocations: 255.2 kB / 488.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006659/0.1564, allocations: 0.6967 MB / 489 MB, free: 10.17 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.119e-05/0.1564, allocations: 37.7 kB / 489 MB, free: 10.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002589/0.1567, allocations: 432.5 kB / 489.5 MB, free: 9.699 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.1568, allocations: 181.3 kB / 489.6 MB, free: 9.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.157, allocations: 110.1 kB / 489.7 MB, free: 9.406 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.724e-05/0.1571, allocations: 326 kB / 490.1 MB, free: 9.082 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004665/0.1576, allocations: 231 kB / 490.3 MB, free: 8.855 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005434/0.1581, allocations: 364.1 kB / 490.6 MB, free: 8.445 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009959/0.1591, allocations: 0.5533 MB / 491.2 MB, free: 7.859 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/0.1591, allocations: 4 kB / 491.2 MB, free: 7.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002369/0.1615, allocations: 1.045 MB / 492.2 MB, free: 6.793 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.1615, allocations: 8 kB / 492.3 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.1616, allocations: 0 / 492.3 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.1626, allocations: 319.4 kB / 492.6 MB, free: 6.461 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005121/0.1632, allocations: 131.8 kB / 492.7 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007989/0.1712, allocations: 7.263 MB / 500 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004758/0.1717, allocations: 79.34 kB / 0.4883 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-05/0.1717, allocations: 27.98 kB / 0.4883 GB, free: 14.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005452/0.1722, allocations: 337.2 kB / 0.4887 GB, free: 14.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004402/0.1727, allocations: 328.2 kB / 0.489 GB, free: 13.69 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007633/0.1735, allocations: 0.505 MB / 0.4895 GB, free: 13.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.974e-06/0.1735, allocations: 0 / 0.4895 GB, free: 13.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001374/0.1749, allocations: 0.74 MB / 0.4902 GB, free: 12.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.1749, allocations: 4 kB / 0.4902 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1749, allocations: 4 kB / 0.4902 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000446/0.1754, allocations: 145.6 kB / 0.4903 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006571/0.176, allocations: 164 kB / 0.4905 GB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003082/0.1791, allocations: 3.438 MB / 0.4939 GB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003825/0.1795, allocations: 63.5 kB / 0.4939 GB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.919e-05/0.1795, allocations: 23.94 kB / 0.4939 GB, free: 8.273 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.0001787/0.1797, allocations: 212.2 kB / 0.4941 GB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001538/0.1799, allocations: 90.88 kB / 0.4942 GB, free: 7.969 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001629/0.1801, allocations: 99.16 kB / 0.4943 GB, free: 7.871 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.1801, allocations: 11.98 kB / 0.4943 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.1801, allocations: 0 / 0.4943 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1801, allocations: 0 / 0.4943 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008874/0.181, allocations: 0.735 MB / 0.4951 GB, free: 7.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.181, allocations: 3.938 kB / 0.4951 GB, free: 7.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000519/0.1815, allocations: 119.8 kB / 0.4952 GB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.1815, allocations: 4 kB / 0.4952 GB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.194e-05/0.1816, allocations: 12 kB / 0.4952 GB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.1816, allocations: 0 / 0.4952 GB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1816, allocations: 4 kB / 0.4952 GB, free: 6.934 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001658/0.1832, allocations: 1.209 MB / 0.4964 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000205/0.1835, allocations: 211.8 kB / 0.4966 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.251e-05/0.1835, allocations: 12 kB / 0.4966 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004475/0.184, allocations: 43.95 kB / 0.4966 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.977e-05/0.1841, allocations: 31.89 kB / 0.4967 GB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.642e-05/0.1841, allocations: 16 kB / 0.4967 GB, free: 5.383 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004706/0.1846, allocations: 491 kB / 0.4971 GB, free: 4.906 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1846, allocations: 0 / 0.4971 GB, free: 4.906 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008174/0.1854, allocations: 275.1 kB / 0.4974 GB, free: 4.637 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.0001202/0.1855, allocations: 115.1 kB / 0.4975 GB, free: 4.512 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003618/0.1892, allocations: 1.901 MB / 0.4994 GB, free: 2.535 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1892, allocations: 0 / 0.4994 GB, free: 2.535 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000513/0.1897, allocations: 282.8 kB / 0.4996 GB, free: 2.262 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.1909, allocations: 235.7 kB / 0.4999 GB, free: 2.039 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/0.1931, allocations: 1.51 MB / 0.5013 GB, free: 496 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2335/0.4266, allocations: 0.9874 MB / 0.5023 GB, free: 47.28 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006849/0.4274, allocations: 85.38 kB / 0.5024 GB, free: 47.28 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001946/0.4276, allocations: 48.97 kB / 0.5024 GB, free: 47.28 MB / 382.1 MB Notification: Performance of SimCode: time 1.533e-06/0.4276, allocations: 0 / 0.5024 GB, free: 47.28 MB / 382.1 MB Notification: Performance of Templates: time 0.02659/0.4542, allocations: 12.2 MB / 0.5143 GB, free: 44.52 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/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_4.0.0_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches