Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001003/0.001003, allocations: 195.2 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 226.5 MB / 244.1 MB, free: 8.105 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007611/0.0007613, allocations: 105.1 kB / 296.1 MB, free: 6.855 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3081/0.3081, allocations: 44.82 MB / 392.9 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002535/0.0002536, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2771, allocations: 62.95 MB / 0.5165 GB, free: 36.98 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1083/0.3854, allocations: 91 MB / 0.6053 GB, free: 14.38 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/0.3857, allocations: 71.97 kB / 0.6054 GB, free: 14.3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0386/0.4244, allocations: 15.43 MB / 0.6205 GB, free: 14.83 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4244, allocations: 0 / 0.6205 GB, free: 14.83 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.456e-05/0.4245, allocations: 20 kB / 0.6205 GB, free: 14.81 MB / 442.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.001804/0.4263, allocations: 1.171 MB / 0.6216 GB, free: 13.58 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.4263, allocations: 8.875 kB / 0.6216 GB, free: 13.57 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.4265, allocations: 119.5 kB / 0.6217 GB, free: 13.46 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008779/0.4274, allocations: 0.6528 MB / 0.6224 GB, free: 12.77 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.376e-05/0.4274, allocations: 45.69 kB / 0.6224 GB, free: 12.72 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.184e-05/0.4275, allocations: 64.38 kB / 0.6225 GB, free: 12.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.4288, allocations: 0.7659 MB / 0.6232 GB, free: 11.84 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.4288, allocations: 192 / 0.6232 GB, free: 11.84 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.962e-05/0.4289, allocations: 39.81 kB / 0.6233 GB, free: 11.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.446e-05/0.4289, allocations: 20 kB / 0.6233 GB, free: 11.78 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001148/0.4301, allocations: 0.5859 MB / 0.6239 GB, free: 11.19 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003352/0.4334, allocations: 2.773 MB / 0.6266 GB, free: 8.32 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/0.4348, allocations: 0.7234 MB / 0.6273 GB, free: 7.562 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005435/0.4353, allocations: 307.3 kB / 0.6276 GB, free: 7.25 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.719e-05/0.4354, allocations: 19.86 kB / 0.6276 GB, free: 7.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/0.4355, allocations: 38.56 kB / 0.6276 GB, free: 7.184 MB / 442.7 MB Notification: Performance of pre-optimization done (n=52): time 2.976e-06/0.4355, allocations: 0 / 0.6276 GB, free: 7.184 MB / 442.7 MB Notification: Performance of matching and sorting (n=52): time 0.0019/0.4374, allocations: 0.8711 MB / 0.6285 GB, free: 6.309 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.4375, allocations: 239.3 kB / 0.6287 GB, free: 6.02 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008067/0.4383, allocations: 0.6929 MB / 0.6294 GB, free: 5.312 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.108e-05/0.4384, allocations: 37.7 kB / 0.6294 GB, free: 5.27 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002966/0.4387, allocations: 432.4 kB / 0.6298 GB, free: 4.844 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.4388, allocations: 185.3 kB / 0.63 GB, free: 4.66 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.24e-05/0.4389, allocations: 12 kB / 0.63 GB, free: 4.648 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.439, allocations: 326 kB / 0.6303 GB, free: 4.324 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005074/0.4395, allocations: 245 kB / 0.6306 GB, free: 4.086 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005884/0.4401, allocations: 384 kB / 0.6309 GB, free: 3.656 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.4412, allocations: 0.6018 MB / 0.6315 GB, free: 3.02 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.4412, allocations: 0 / 0.6315 GB, free: 3.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002606/0.4438, allocations: 1.151 MB / 0.6326 GB, free: 1.852 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.4439, allocations: 175.6 kB / 0.6328 GB, free: 1.637 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.4439, allocations: 4 kB / 0.6328 GB, free: 1.633 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001217/0.4452, allocations: 363.1 kB / 0.6332 GB, free: 1.266 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005311/0.4457, allocations: 131.8 kB / 0.6333 GB, free: 1.137 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007885/0.4536, allocations: 7.076 MB / 0.6402 GB, free: 9.523 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006349/0.4543, allocations: 87.47 kB / 0.6403 GB, free: 9.438 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.982e-05/0.4543, allocations: 20 kB / 0.6403 GB, free: 9.418 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/0.4543, allocations: 7.984 kB / 0.6403 GB, free: 9.41 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001394/0.4557, allocations: 0.6666 MB / 0.641 GB, free: 8.742 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.4558, allocations: 4 kB / 0.641 GB, free: 8.738 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004999/0.4563, allocations: 145.9 kB / 0.6411 GB, free: 8.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007333/0.457, allocations: 179.8 kB / 0.6413 GB, free: 8.414 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003141/0.4602, allocations: 3.272 MB / 0.6445 GB, free: 4.875 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005991/0.4608, allocations: 67.55 kB / 0.6445 GB, free: 4.809 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.162e-05/0.4608, allocations: 23.94 kB / 0.6446 GB, free: 4.785 MB / 458.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 () * 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.0004629/0.4613, allocations: 300.1 kB / 0.6448 GB, free: 4.484 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001683/0.4615, allocations: 90.88 kB / 0.6449 GB, free: 4.395 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000168/0.4617, allocations: 103.1 kB / 0.645 GB, free: 4.289 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.4617, allocations: 7.938 kB / 0.645 GB, free: 4.281 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.4617, allocations: 4 kB / 0.645 GB, free: 4.277 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.4617, allocations: 0 / 0.645 GB, free: 4.277 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009414/0.4626, allocations: 0.7311 MB / 0.6457 GB, free: 3.496 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.4626, allocations: 0 / 0.6457 GB, free: 3.496 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005534/0.4632, allocations: 120.1 kB / 0.6459 GB, free: 3.379 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.4632, allocations: 4 kB / 0.6459 GB, free: 3.375 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.956e-05/0.4633, allocations: 19.98 kB / 0.6459 GB, free: 3.355 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.371e-06/0.4633, allocations: 7.938 kB / 0.6459 GB, free: 3.348 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4633, allocations: 0 / 0.6459 GB, free: 3.348 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001868/0.4652, allocations: 1.283 MB / 0.6471 GB, free: 2.043 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002246/0.4654, allocations: 215.9 kB / 0.6474 GB, free: 1.812 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.496e-05/0.4655, allocations: 15.94 kB / 0.6474 GB, free: 1.797 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004604/0.466, allocations: 51.97 kB / 0.6474 GB, free: 1.746 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.538e-05/0.466, allocations: 31.95 kB / 0.6474 GB, free: 1.715 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.189e-05/0.4661, allocations: 19.98 kB / 0.6475 GB, free: 1.695 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005354/0.4666, allocations: 479 kB / 0.6479 GB, free: 1.23 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4666, allocations: 4 kB / 0.6479 GB, free: 1.227 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0009255/0.4676, allocations: 279 kB / 0.6482 GB, free: 0.9531 MB / 458.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 () * 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.0001561/0.4677, allocations: 119 kB / 0.6483 GB, free: 0.8281 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003791/0.4715, allocations: 2.013 MB / 0.6503 GB, free: 14.73 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.4715, allocations: 4 kB / 0.6503 GB, free: 14.73 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005655/0.4721, allocations: 303.7 kB / 0.6506 GB, free: 14.43 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.4735, allocations: 224.5 kB / 0.6508 GB, free: 14.22 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002794/0.4763, allocations: 1.792 MB / 0.6525 GB, free: 12.38 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006535/0.477, allocations: 0.9884 MB / 0.6535 GB, free: 11.37 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001864/0.4772, allocations: 47.44 kB / 0.6535 GB, free: 11.32 MB / 474.7 MB Notification: Performance of SimCode: time 8.52e-07/0.4772, allocations: 0 / 0.6535 GB, free: 11.32 MB / 474.7 MB Notification: Performance of Templates: time 0.02001/0.4972, allocations: 16.95 MB / 0.6701 GB, free: 10.39 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches