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.0009371/0.0009372, allocations: 97.06 kB / 17.35 MB, free: 6.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.001079/0.001079, allocations: 168 kB / 18.25 MB, free: 5.508 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.406/1.406, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2109/0.2109, allocations: 44.25 MB / 337.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004506/0.0004506, allocations: 8 kB / 410.3 MB, free: 27.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.151, allocations: 61.93 MB / 472.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004653/0.1557, allocations: 3.911 MB / 476.2 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002926/0.1586, allocations: 1.504 MB / 477.7 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005926/0.1593, allocations: 35.81 kB / 477.7 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003658/0.1596, allocations: 110.9 kB / 477.8 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004038/0.1601, allocations: 138.8 kB / 477.9 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001288/0.1614, allocations: 0.5302 MB / 478.5 MB, free: 7.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00112/0.1625, allocations: 0.9488 MB / 479.4 MB, free: 6.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007215/0.1632, allocations: 423.1 kB / 479.8 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003342/0.1636, allocations: 262.2 kB / 480.1 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003512/0.1639, allocations: 309.7 kB / 480.4 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.848e-05/0.164, allocations: 24 kB / 480.4 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.652e-05/0.1641, allocations: 20 kB / 480.4 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.1642, allocations: 115.2 kB / 480.5 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002989/0.1645, allocations: 379 kB / 480.9 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007746/0.1653, allocations: 0.891 MB / 481.8 MB, free: 3.719 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.1653, allocations: 0 / 481.8 MB, free: 3.719 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.756e-06/0.1653, allocations: 0 / 481.8 MB, free: 3.719 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.275e-05/0.1653, allocations: 0 / 481.8 MB, free: 3.719 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.001881/0.1672, allocations: 1.145 MB / 483 MB, free: 2.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.1673, allocations: 8.031 kB / 483 MB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001957/0.1675, allocations: 115.5 kB / 483.1 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009404/0.1684, allocations: 0.6164 MB / 483.7 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.177e-05/0.1685, allocations: 53.62 kB / 483.7 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.1686, allocations: 68.38 kB / 483.8 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.1701, allocations: 0.765 MB / 484.6 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.1701, allocations: 7.875 kB / 484.6 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.119e-05/0.1702, allocations: 28 kB / 484.6 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.1702, allocations: 16 kB / 484.6 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/0.1715, allocations: 0.5933 MB / 485.2 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003591/0.1751, allocations: 2.733 MB / 488 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.1766, allocations: 0.7296 MB / 488.7 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000604/0.1772, allocations: 307.3 kB / 489 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.325e-05/0.1773, allocations: 19.91 kB / 489 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.1773, allocations: 38.56 kB / 489 MB, free: 12.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.485e-06/0.1773, allocations: 0 / 489 MB, free: 12.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.00207/0.1794, allocations: 0.8745 MB / 489.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/0.1795, allocations: 243.3 kB / 490.2 MB, free: 11.01 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008556/0.1804, allocations: 0.6929 MB / 490.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.78e-05/0.1805, allocations: 33.7 kB / 490.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003608/0.1808, allocations: 432.4 kB / 491.3 MB, free: 9.844 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/0.181, allocations: 185.3 kB / 491.5 MB, free: 9.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.205e-05/0.1811, allocations: 53.69 kB / 491.5 MB, free: 9.602 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1813, allocations: 330 kB / 491.9 MB, free: 9.273 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005567/0.1818, allocations: 249 kB / 492.1 MB, free: 9.031 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000669/0.1825, allocations: 392 kB / 492.5 MB, free: 8.594 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001206/0.1837, allocations: 0.606 MB / 493.1 MB, free: 7.953 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.1837, allocations: 0 / 493.1 MB, free: 7.953 MB / 366.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002942/0.1867, allocations: 1.173 MB / 494.3 MB, free: 6.766 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001334/0.1868, allocations: 175.6 kB / 494.4 MB, free: 6.551 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/0.1868, allocations: 8 kB / 494.4 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001296/0.1882, allocations: 347.1 kB / 494.8 MB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006005/0.1888, allocations: 131.9 kB / 494.9 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009581/0.1984, allocations: 7.072 MB / 0.4902 GB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006992/0.1991, allocations: 95.41 kB / 0.4903 GB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.48e-05/0.1992, allocations: 23.98 kB / 0.4903 GB, free: 14.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.1992, allocations: 4 kB / 0.4903 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001575/0.2008, allocations: 0.668 MB / 0.491 GB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.2008, allocations: 11.92 kB / 0.491 GB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005182/0.2013, allocations: 145.9 kB / 0.4911 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007208/0.202, allocations: 176 kB / 0.4913 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003746/0.2058, allocations: 3.28 MB / 0.4945 GB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005573/0.2064, allocations: 75.41 kB / 0.4946 GB, free: 9.711 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.202e-05/0.2064, allocations: 16 kB / 0.4946 GB, free: 9.695 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.0004424/0.2069, allocations: 297 kB / 0.4949 GB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001937/0.2071, allocations: 90.88 kB / 0.495 GB, free: 9.305 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001825/0.2072, allocations: 103.1 kB / 0.4951 GB, free: 9.199 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.685e-06/0.2073, allocations: 7.984 kB / 0.4951 GB, free: 9.191 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.2073, allocations: 0 / 0.4951 GB, free: 9.191 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.2073, allocations: 4 kB / 0.4951 GB, free: 9.188 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/0.2084, allocations: 0.7311 MB / 0.4958 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.2084, allocations: 0 / 0.4958 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005705/0.209, allocations: 123.9 kB / 0.4959 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.209, allocations: 4 kB / 0.4959 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.772e-05/0.209, allocations: 11.94 kB / 0.4959 GB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.209, allocations: 4 kB / 0.4959 GB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.209, allocations: 3.984 kB / 0.4959 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002034/0.2111, allocations: 1.28 MB / 0.4972 GB, free: 6.969 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002558/0.2113, allocations: 215.7 kB / 0.4974 GB, free: 6.738 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.555e-05/0.2114, allocations: 12 kB / 0.4974 GB, free: 6.727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004985/0.2119, allocations: 59.95 kB / 0.4974 GB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.758e-05/0.212, allocations: 31.95 kB / 0.4975 GB, free: 6.637 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-05/0.2121, allocations: 8 kB / 0.4975 GB, free: 6.629 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005777/0.2127, allocations: 495 kB / 0.498 GB, free: 6.148 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2127, allocations: 0 / 0.498 GB, free: 6.148 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001016/0.2137, allocations: 279.1 kB / 0.4982 GB, free: 5.875 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.0001562/0.2139, allocations: 119.5 kB / 0.4983 GB, free: 5.746 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004433/0.2183, allocations: 2.028 MB / 0.5003 GB, free: 3.645 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.2183, allocations: 0 / 0.5003 GB, free: 3.645 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007367/0.2191, allocations: 303.7 kB / 0.5006 GB, free: 3.348 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001593/0.2207, allocations: 225.2 kB / 0.5008 GB, free: 3.133 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002864/0.2236, allocations: 1.867 MB / 0.5026 GB, free: 1.227 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005856/0.2242, allocations: 0.9812 MB / 0.5036 GB, free: 220 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004014/0.2246, allocations: 93.34 kB / 0.5037 GB, free: 124 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/0.2248, allocations: 47.42 kB / 0.5037 GB, free: 76 kB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2248, allocations: 0 / 0.5037 GB, free: 76 kB / 382.1 MB Notification: Performance of Templates: time 0.2439/0.4687, allocations: 11.27 MB / 0.5147 GB, free: 43.79 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