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.000938/0.0009381, allocations: 179.6 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 221.4 MB / 236 MB, free: 2.957 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.0009534/0.0009535, allocations: 88.06 kB / 287 MB, free: 252 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1851/0.1851, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.948e-05/3.976e-05, allocations: 224 / 451.8 MB, free: 9.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1652/0.1653, allocations: 61.92 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4026/0.568, allocations: 90 MB / 0.5896 GB, free: 15.31 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002156/0.5682, allocations: 63.97 kB / 0.5897 GB, free: 15.25 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03938/0.6076, allocations: 15.36 MB / 0.6047 GB, free: 15.85 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.577e-06/0.6077, allocations: 3.984 kB / 0.6047 GB, free: 15.85 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.251e-05/0.6077, allocations: 24 kB / 0.6047 GB, free: 15.82 MB / 426.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.001691/0.6094, allocations: 1.047 MB / 0.6057 GB, free: 14.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.6095, allocations: 8.031 kB / 0.6057 GB, free: 14.72 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001865/0.6097, allocations: 114.6 kB / 0.6058 GB, free: 14.61 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001081/0.6108, allocations: 0.6133 MB / 0.6064 GB, free: 13.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.637e-05/0.6108, allocations: 45.31 kB / 0.6065 GB, free: 13.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.6109, allocations: 75.72 kB / 0.6065 GB, free: 13.84 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.6121, allocations: 0.6688 MB / 0.6072 GB, free: 13.11 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/0.6121, allocations: 7.938 kB / 0.6072 GB, free: 13.1 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.502e-05/0.6122, allocations: 24 kB / 0.6072 GB, free: 13.08 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.581e-05/0.6122, allocations: 19.95 kB / 0.6072 GB, free: 13.06 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00072/0.613, allocations: 439.5 kB / 0.6077 GB, free: 12.63 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003474/0.6164, allocations: 2.776 MB / 0.6104 GB, free: 9.754 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.6175, allocations: 0.5618 MB / 0.6109 GB, free: 9.156 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003111/0.6178, allocations: 220.9 kB / 0.6111 GB, free: 8.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.349e-05/0.6179, allocations: 4 kB / 0.6111 GB, free: 8.926 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.113e-05/0.6179, allocations: 47.55 kB / 0.6112 GB, free: 8.871 MB / 426.7 MB Notification: Performance of pre-optimization done (n=52): time 2.224e-06/0.6179, allocations: 0 / 0.6112 GB, free: 8.871 MB / 426.7 MB Notification: Performance of matching and sorting (n=52): time 0.0008596/0.6188, allocations: 496.1 kB / 0.6117 GB, free: 8.383 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.6189, allocations: 243.3 kB / 0.6119 GB, free: 8.09 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006716/0.6196, allocations: 0.5869 MB / 0.6125 GB, free: 7.496 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.472e-05/0.6196, allocations: 37.7 kB / 0.6125 GB, free: 7.453 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003117/0.62, allocations: 436.4 kB / 0.6129 GB, free: 7.02 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.6201, allocations: 181.3 kB / 0.6131 GB, free: 6.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.264e-05/0.6201, allocations: 12 kB / 0.6131 GB, free: 6.828 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.6203, allocations: 333.9 kB / 0.6134 GB, free: 6.496 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002703/0.6205, allocations: 165.1 kB / 0.6136 GB, free: 6.336 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003556/0.6209, allocations: 301.4 kB / 0.6139 GB, free: 5.992 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003018/0.6212, allocations: 192.5 kB / 0.614 GB, free: 5.809 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.6212, allocations: 4 kB / 0.614 GB, free: 5.805 MB / 426.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001867/0.6231, allocations: 0.8982 MB / 0.6149 GB, free: 4.891 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004551/0.6236, allocations: 1.137 MB / 0.616 GB, free: 3.668 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.6236, allocations: 1.094 kB / 0.616 GB, free: 3.668 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008967/0.6245, allocations: 259.2 kB / 0.6163 GB, free: 3.402 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005208/0.625, allocations: 131.8 kB / 0.6164 GB, free: 3.273 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003397/0.6284, allocations: 3.582 MB / 0.6199 GB, free: 15.47 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004816/0.6289, allocations: 95.45 kB / 0.62 GB, free: 15.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.549e-05/0.629, allocations: 16 kB / 0.62 GB, free: 15.36 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.372e-06/0.629, allocations: 4 kB / 0.62 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001085/0.6301, allocations: 0.5762 MB / 0.6206 GB, free: 14.78 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.6301, allocations: 0 / 0.6206 GB, free: 14.78 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003963/0.6305, allocations: 122.2 kB / 0.6207 GB, free: 14.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007125/0.6312, allocations: 187.7 kB / 0.6209 GB, free: 14.47 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003012/0.6343, allocations: 3.132 MB / 0.6239 GB, free: 11.08 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005886/0.6349, allocations: 71.41 kB / 0.624 GB, free: 11.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.673e-05/0.6349, allocations: 20 kB / 0.624 GB, free: 10.99 MB / 442.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.0002004/0.6351, allocations: 148.9 kB / 0.6242 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001768/0.6353, allocations: 90.81 kB / 0.6242 GB, free: 10.75 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002344/0.6355, allocations: 95.28 kB / 0.6243 GB, free: 10.65 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.6356, allocations: 8 kB / 0.6243 GB, free: 10.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.6356, allocations: 0 / 0.6243 GB, free: 10.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.6356, allocations: 3.984 kB / 0.6243 GB, free: 10.64 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.6366, allocations: 0.735 MB / 0.6251 GB, free: 9.852 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.6366, allocations: 11.92 kB / 0.6251 GB, free: 9.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005637/0.6372, allocations: 119.9 kB / 0.6252 GB, free: 9.723 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.6372, allocations: 4 kB / 0.6252 GB, free: 9.719 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.453e-05/0.6373, allocations: 12 kB / 0.6252 GB, free: 9.707 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.6373, allocations: 0 / 0.6252 GB, free: 9.707 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.6373, allocations: 4 kB / 0.6252 GB, free: 9.703 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.6386, allocations: 1.086 MB / 0.6263 GB, free: 8.574 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002935/0.6389, allocations: 211.8 kB / 0.6265 GB, free: 8.348 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.311e-05/0.639, allocations: 16 kB / 0.6265 GB, free: 8.332 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000483/0.6394, allocations: 55.95 kB / 0.6265 GB, free: 8.277 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.716e-05/0.6395, allocations: 39.91 kB / 0.6266 GB, free: 8.238 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.897e-05/0.6396, allocations: 12 kB / 0.6266 GB, free: 8.227 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005402/0.6401, allocations: 471.2 kB / 0.627 GB, free: 7.773 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6401, allocations: 0 / 0.627 GB, free: 7.773 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000933/0.6411, allocations: 271.1 kB / 0.6273 GB, free: 7.508 MB / 442.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.0002071/0.6413, allocations: 123 kB / 0.6274 GB, free: 7.379 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003459/0.6448, allocations: 1.499 MB / 0.6289 GB, free: 5.836 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.6448, allocations: 4 kB / 0.6289 GB, free: 5.832 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003686/0.6452, allocations: 219.3 kB / 0.6291 GB, free: 5.621 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.6463, allocations: 214.5 kB / 0.6293 GB, free: 5.422 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.6485, allocations: 1.13 MB / 0.6304 GB, free: 4.246 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005549/0.649, allocations: 0.9982 MB / 0.6314 GB, free: 3.219 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005587/0.6496, allocations: 151.7 kB / 0.6315 GB, free: 3.07 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.6497, allocations: 39.44 kB / 0.6316 GB, free: 3.031 MB / 442.7 MB Notification: Performance of SimCode: time 8.92e-07/0.6498, allocations: 8 kB / 0.6316 GB, free: 3.023 MB / 442.7 MB Notification: Performance of Templates: time 0.01982/0.6696, allocations: 12.05 MB / 0.6433 GB, free: 7.039 MB / 458.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