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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 221.5 MB / 230.7 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 98.73 kB / 281.6 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2042/0.2042, allocations: 44.15 MB / 376.5 MB, free: 3.035 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.645e-05/1.647e-05, allocations: 0 / 444.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.125, allocations: 61.91 MB / 0.4947 GB, free: 1.246 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3745/0.4996, allocations: 89.34 MB / 0.5819 GB, free: 7.172 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002471/0.4999, allocations: 63.97 kB / 0.582 GB, free: 7.109 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04137/0.5413, allocations: 15.26 MB / 0.5969 GB, free: 7.816 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5413, allocations: 0 / 0.5969 GB, free: 7.816 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.337e-05/0.5414, allocations: 20 kB / 0.5969 GB, free: 7.797 MB / 410.7 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.001673/0.5431, allocations: 1.047 MB / 0.5979 GB, free: 6.703 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.5431, allocations: 15.98 kB / 0.5979 GB, free: 6.688 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001794/0.5433, allocations: 114.6 kB / 0.598 GB, free: 6.574 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009653/0.5443, allocations: 0.6104 MB / 0.5986 GB, free: 5.922 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/0.5444, allocations: 20.84 kB / 0.5986 GB, free: 5.902 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.769e-05/0.5444, allocations: 47.89 kB / 0.5987 GB, free: 5.855 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007402/0.5452, allocations: 394.6 kB / 0.5991 GB, free: 5.473 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009138/0.5461, allocations: 0.5802 MB / 0.5996 GB, free: 4.832 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.5461, allocations: 4 kB / 0.5996 GB, free: 4.828 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.722e-05/0.5462, allocations: 7.953 kB / 0.5996 GB, free: 4.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.419e-05/0.5462, allocations: 16 kB / 0.5997 GB, free: 4.805 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00344/0.5497, allocations: 2.656 MB / 0.6023 GB, free: 2.062 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.5507, allocations: 0.5267 MB / 0.6028 GB, free: 1.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003038/0.551, allocations: 213.5 kB / 0.603 GB, free: 1.281 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.591e-05/0.5511, allocations: 11.92 kB / 0.603 GB, free: 1.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/0.5511, allocations: 42.56 kB / 0.603 GB, free: 1.219 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 2.805e-06/0.5511, allocations: 0 / 0.603 GB, free: 1.219 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.000809/0.5519, allocations: 455.3 kB / 0.6035 GB, free: 0.7695 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.5521, allocations: 235.3 kB / 0.6037 GB, free: 496 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005922/0.5527, allocations: 0.5083 MB / 0.6042 GB, free: 15.97 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.999e-05/0.5527, allocations: 29.7 kB / 0.6042 GB, free: 15.93 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003079/0.553, allocations: 432.1 kB / 0.6046 GB, free: 15.51 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001414/0.5532, allocations: 181.3 kB / 0.6048 GB, free: 15.33 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.684e-05/0.5532, allocations: 0 / 0.6048 GB, free: 15.33 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.5534, allocations: 329.9 kB / 0.6051 GB, free: 15 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002425/0.5536, allocations: 149.1 kB / 0.6053 GB, free: 14.86 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003566/0.554, allocations: 284.5 kB / 0.6055 GB, free: 14.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002845/0.5543, allocations: 187.3 kB / 0.6057 GB, free: 14.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.377e-05/0.5543, allocations: 7.953 kB / 0.6057 GB, free: 14.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001854/0.5562, allocations: 0.8345 MB / 0.6065 GB, free: 13.49 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005008/0.5567, allocations: 1.139 MB / 0.6076 GB, free: 12.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.5567, allocations: 4 kB / 0.6076 GB, free: 12.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009031/0.5576, allocations: 259.3 kB / 0.6079 GB, free: 11.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005421/0.5582, allocations: 131.8 kB / 0.608 GB, free: 11.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003607/0.5618, allocations: 3.542 MB / 0.6115 GB, free: 8.129 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004986/0.5623, allocations: 79.56 kB / 0.6115 GB, free: 8.051 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.779e-05/0.5624, allocations: 16 kB / 0.6116 GB, free: 8.035 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.556e-06/0.5624, allocations: 4 kB / 0.6116 GB, free: 8.031 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001025/0.5634, allocations: 0.5124 MB / 0.6121 GB, free: 7.516 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.5634, allocations: 11.89 kB / 0.6121 GB, free: 7.504 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003748/0.5638, allocations: 121.6 kB / 0.6122 GB, free: 7.379 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007343/0.5645, allocations: 176 kB / 0.6124 GB, free: 7.207 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003019/0.5676, allocations: 3.016 MB / 0.6153 GB, free: 3.957 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005565/0.5682, allocations: 55.64 kB / 0.6154 GB, free: 3.902 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.522e-05/0.5682, allocations: 20 kB / 0.6154 GB, free: 3.883 MB / 426.7 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 () * 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.000192/0.5684, allocations: 116.9 kB / 0.6155 GB, free: 3.762 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/0.5686, allocations: 86.91 kB / 0.6156 GB, free: 3.676 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002155/0.5688, allocations: 94.55 kB / 0.6157 GB, free: 3.578 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.5688, allocations: 8 kB / 0.6157 GB, free: 3.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.5688, allocations: 0 / 0.6157 GB, free: 3.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.495e-06/0.5689, allocations: 11.98 kB / 0.6157 GB, free: 3.559 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.5699, allocations: 0.6497 MB / 0.6163 GB, free: 2.871 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.5699, allocations: 0 / 0.6163 GB, free: 2.871 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005779/0.5705, allocations: 119.9 kB / 0.6164 GB, free: 2.754 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.5705, allocations: 8 kB / 0.6164 GB, free: 2.746 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.254e-05/0.5705, allocations: 4 kB / 0.6164 GB, free: 2.742 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.5705, allocations: 0 / 0.6164 GB, free: 2.742 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.5706, allocations: 7.953 kB / 0.6165 GB, free: 2.734 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.5717, allocations: 1.041 MB / 0.6175 GB, free: 1.652 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002492/0.572, allocations: 208.1 kB / 0.6177 GB, free: 1.43 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.364e-05/0.5721, allocations: 4 kB / 0.6177 GB, free: 1.426 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004911/0.5726, allocations: 51.95 kB / 0.6177 GB, free: 1.375 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.864e-05/0.5727, allocations: 27.95 kB / 0.6177 GB, free: 1.348 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-05/0.5727, allocations: 16 kB / 0.6178 GB, free: 1.332 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005354/0.5732, allocations: 395.2 kB / 0.6181 GB, free: 0.9492 MB / 426.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5732, allocations: 0 / 0.6181 GB, free: 0.9492 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001018/0.5743, allocations: 246.9 kB / 0.6184 GB, free: 0.707 MB / 426.7 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 () * 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.0001685/0.5744, allocations: 116 kB / 0.6185 GB, free: 0.5859 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003382/0.5778, allocations: 1.429 MB / 0.6199 GB, free: 15.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.5779, allocations: 4 kB / 0.6199 GB, free: 15.12 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003437/0.5782, allocations: 211.8 kB / 0.6201 GB, free: 14.91 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.5794, allocations: 193.5 kB / 0.6203 GB, free: 14.73 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002017/0.5814, allocations: 1.082 MB / 0.6213 GB, free: 13.61 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005964/0.582, allocations: 1.006 MB / 0.6223 GB, free: 12.57 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005722/0.5826, allocations: 147.3 kB / 0.6224 GB, free: 12.42 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.5828, allocations: 35.44 kB / 0.6225 GB, free: 12.38 MB / 442.7 MB Notification: Performance of SimCode: time 6.61e-07/0.5828, allocations: 0 / 0.6225 GB, free: 12.38 MB / 442.7 MB Notification: Performance of Templates: time 0.01963/0.6024, allocations: 10.92 MB / 0.6331 GB, free: 1.531 MB / 442.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches