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.001004/0.001005, allocations: 95.94 kB / 17 MB, free: 6.418 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.0008811/0.0008811, allocations: 189.2 kB / 17.89 MB, free: 5.945 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.503/1.503, allocations: 223.3 MB / 241.9 MB, free: 320 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.2336/0.2336, allocations: 44.26 MB / 337.3 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003698/0.0003699, allocations: 11.98 kB / 409.7 MB, free: 27.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1374, allocations: 61.93 MB / 471.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004929/0.1424, allocations: 3.669 MB / 475.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003721/0.1461, allocations: 1.481 MB / 476.7 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009401/0.1471, allocations: 31.81 kB / 476.8 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004989/0.1476, allocations: 106.9 kB / 476.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006768/0.1483, allocations: 134.8 kB / 477 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001409/0.1497, allocations: 435.5 kB / 477.4 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001491/0.1512, allocations: 0.8904 MB / 478.3 MB, free: 6.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007014/0.1519, allocations: 310.5 kB / 478.6 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004428/0.1524, allocations: 250.5 kB / 478.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004512/0.1528, allocations: 286 kB / 479.1 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.153, allocations: 20 kB / 479.2 MB, free: 6.066 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.137e-05/0.153, allocations: 24 kB / 479.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001226/0.1532, allocations: 115.3 kB / 479.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.1533, allocations: 161.1 kB / 479.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006685/0.154, allocations: 0.7056 MB / 480.2 MB, free: 5.059 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.154, allocations: 0 / 480.2 MB, free: 5.059 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.499e-06/0.154, allocations: 3.984 kB / 480.2 MB, free: 5.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.265e-05/0.1541, allocations: 0 / 480.2 MB, free: 5.055 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.001785/0.1559, allocations: 1.144 MB / 481.3 MB, free: 3.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.1559, allocations: 11.97 kB / 481.3 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001494/0.1561, allocations: 118.6 kB / 481.4 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007567/0.1568, allocations: 0.5847 MB / 482 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.177e-05/0.1569, allocations: 49.25 kB / 482.1 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.844e-05/0.157, allocations: 71.89 kB / 482.1 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.1583, allocations: 0.7622 MB / 482.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.1583, allocations: 0 / 482.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.668e-05/0.1584, allocations: 28 kB / 482.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.1584, allocations: 16 kB / 482.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001629/0.16, allocations: 0.5855 MB / 483.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005306/0.1654, allocations: 2.737 MB / 486.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002133/0.1675, allocations: 0.7295 MB / 487 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000839/0.1684, allocations: 303.3 kB / 487.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.286e-05/0.1685, allocations: 4 kB / 487.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.909e-05/0.1685, allocations: 46.56 kB / 487.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 5.731e-06/0.1685, allocations: 0 / 487.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.002974/0.1715, allocations: 0.8706 MB / 488.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001803/0.1717, allocations: 259.2 kB / 488.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001225/0.173, allocations: 0.685 MB / 489.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001529/0.1731, allocations: 41.69 kB / 489.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004926/0.1736, allocations: 428.5 kB / 489.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002407/0.1739, allocations: 185.3 kB / 489.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/0.1739, allocations: 8 kB / 489.8 MB, free: 11.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.1741, allocations: 334 kB / 490.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007829/0.1749, allocations: 245 kB / 490.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009451/0.1759, allocations: 384.1 kB / 490.7 MB, free: 10.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008455/0.1767, allocations: 278.5 kB / 491 MB, free: 9.758 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.1767, allocations: 0 / 491 MB, free: 9.758 MB / 366.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003841/0.1806, allocations: 1.146 MB / 492.2 MB, free: 8.594 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001809/0.1808, allocations: 182.5 kB / 492.3 MB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/0.1808, allocations: 7.938 kB / 492.3 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001761/0.1826, allocations: 367.1 kB / 492.7 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000819/0.1834, allocations: 131.8 kB / 492.8 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01227/0.1957, allocations: 7.057 MB / 499.9 MB, free: 280 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009533/0.1967, allocations: 99.39 kB / 500 MB, free: 180 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-05/0.1968, allocations: 24 kB / 0.4883 GB, free: 156 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.1968, allocations: 6.344 kB / 0.4883 GB, free: 152 kB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002231/0.1991, allocations: 0.66 MB / 0.4889 GB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.1991, allocations: 7.938 kB / 0.489 GB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007194/0.1998, allocations: 158 kB / 0.4891 GB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.2009, allocations: 179.8 kB / 0.4893 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004738/0.2057, allocations: 3.26 MB / 0.4925 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007316/0.2064, allocations: 71.61 kB / 0.4925 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.308e-05/0.2065, allocations: 20 kB / 0.4925 GB, free: 11.52 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0006659/0.2071, allocations: 292.9 kB / 0.4928 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002846/0.2074, allocations: 90.88 kB / 0.4929 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002483/0.2077, allocations: 95.16 kB / 0.493 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.2077, allocations: 4 kB / 0.493 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.2077, allocations: 7.953 kB / 0.493 GB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.2078, allocations: 4 kB / 0.493 GB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001624/0.2094, allocations: 0.7428 MB / 0.4937 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.2094, allocations: 0 / 0.4937 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008536/0.2103, allocations: 115.8 kB / 0.4939 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.066e-05/0.2103, allocations: 7.984 kB / 0.4939 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.274e-05/0.2104, allocations: 16 kB / 0.4939 GB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.404e-06/0.2104, allocations: 4 kB / 0.4939 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.2104, allocations: 3.984 kB / 0.4939 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002963/0.2134, allocations: 1.272 MB / 0.4951 GB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003648/0.2138, allocations: 215.9 kB / 0.4953 GB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.991e-05/0.2139, allocations: 15.94 kB / 0.4953 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006906/0.2146, allocations: 51.95 kB / 0.4954 GB, free: 8.508 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.2147, allocations: 35.91 kB / 0.4954 GB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.509e-05/0.2148, allocations: 16 kB / 0.4954 GB, free: 8.457 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008662/0.2156, allocations: 479 kB / 0.4959 GB, free: 7.996 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2156, allocations: 3.938 kB / 0.4959 GB, free: 7.992 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001634/0.2173, allocations: 279.1 kB / 0.4962 GB, free: 7.719 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002463/0.2176, allocations: 107.2 kB / 0.4963 GB, free: 7.602 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006041/0.2236, allocations: 2.017 MB / 0.4982 GB, free: 5.508 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.846e-05/0.2237, allocations: 8 kB / 0.4983 GB, free: 5.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009122/0.2246, allocations: 299.7 kB / 0.4985 GB, free: 5.207 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001434/0.226, allocations: 217.3 kB / 0.4987 GB, free: 4.996 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003579/0.2296, allocations: 1.762 MB / 0.5005 GB, free: 3.195 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007608/0.2304, allocations: 0.9851 MB / 0.5014 GB, free: 2.184 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005794/0.231, allocations: 93.17 kB / 0.5015 GB, free: 2.094 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002232/0.2312, allocations: 47.44 kB / 0.5016 GB, free: 2.047 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.2312, allocations: 0 / 0.5016 GB, free: 2.047 MB / 382.1 MB Notification: Performance of Templates: time 0.3122/0.5434, allocations: 10.9 MB / 0.5122 GB, free: 45.13 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