Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009815/0.0009819, allocations: 176.8 kB / 16.77 MB, free: 4.91 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.664/1.664, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007885/0.0007887, allocations: 89.42 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3759/0.3759, allocations: 43.56 MB / 363.1 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000367/0.0003671, allocations: 16 kB / 432.6 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.127, allocations: 58.85 MB / 491.5 MB, free: 10.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3707/0.4977, allocations: 89.19 MB / 0.5671 GB, free: 12.77 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.498, allocations: 63.98 kB / 0.5671 GB, free: 12.7 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04245/0.5405, allocations: 15.63 MB / 0.5824 GB, free: 13.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5405, allocations: 0 / 0.5824 GB, free: 13.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001165/0.5407, allocations: 19.94 kB / 0.5824 GB, free: 13.07 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.002565/0.5432, allocations: 1.196 MB / 0.5836 GB, free: 11.81 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.5433, allocations: 8.031 kB / 0.5836 GB, free: 11.8 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003128/0.5436, allocations: 115.5 kB / 0.5837 GB, free: 11.69 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.5449, allocations: 0.6838 MB / 0.5844 GB, free: 10.97 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.629e-05/0.5449, allocations: 49.69 kB / 0.5844 GB, free: 10.92 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.5451, allocations: 60.38 kB / 0.5845 GB, free: 10.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.5465, allocations: 0.7652 MB / 0.5852 GB, free: 10.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.5465, allocations: 11.78 kB / 0.5852 GB, free: 10.03 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.45e-05/0.5466, allocations: 23.94 kB / 0.5852 GB, free: 10.01 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.5466, allocations: 16 kB / 0.5853 GB, free: 9.992 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.5478, allocations: 0.5898 MB / 0.5858 GB, free: 9.406 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003758/0.5516, allocations: 2.792 MB / 0.5886 GB, free: 6.516 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.553, allocations: 0.7242 MB / 0.5893 GB, free: 5.758 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005826/0.5536, allocations: 307.2 kB / 0.5896 GB, free: 5.445 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.267e-05/0.5536, allocations: 7.938 kB / 0.5896 GB, free: 5.438 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.579e-05/0.5537, allocations: 42.55 kB / 0.5896 GB, free: 5.387 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 3.627e-06/0.5537, allocations: 4 kB / 0.5896 GB, free: 5.383 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.001852/0.5555, allocations: 0.8708 MB / 0.5905 GB, free: 4.508 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.5557, allocations: 239.3 kB / 0.5907 GB, free: 4.219 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008682/0.5565, allocations: 0.7126 MB / 0.5914 GB, free: 3.496 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.504e-05/0.5566, allocations: 37.7 kB / 0.5914 GB, free: 3.453 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002875/0.5569, allocations: 432.5 kB / 0.5918 GB, free: 3.027 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.557, allocations: 189.3 kB / 0.592 GB, free: 2.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.778e-05/0.5571, allocations: 12 kB / 0.592 GB, free: 2.828 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.608e-05/0.5572, allocations: 326 kB / 0.5923 GB, free: 2.504 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004602/0.5576, allocations: 241 kB / 0.5926 GB, free: 2.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005599/0.5582, allocations: 391.9 kB / 0.5929 GB, free: 1.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.5593, allocations: 0.6071 MB / 0.5935 GB, free: 1.199 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.5593, allocations: 0 / 0.5935 GB, free: 1.199 MB / 410.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002618/0.5619, allocations: 1.151 MB / 0.5947 GB, free: 32 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001353/0.5621, allocations: 176.5 kB / 0.5948 GB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.5621, allocations: 0 / 0.5948 GB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001214/0.5633, allocations: 363.1 kB / 0.5952 GB, free: 15.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000539/0.5639, allocations: 131.8 kB / 0.5953 GB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008224/0.5721, allocations: 7.072 MB / 0.6022 GB, free: 7.715 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005631/0.5727, allocations: 95.48 kB / 0.6023 GB, free: 7.621 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-05/0.5728, allocations: 20 kB / 0.6023 GB, free: 7.602 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.402e-06/0.5728, allocations: 0 / 0.6023 GB, free: 7.602 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001423/0.5742, allocations: 0.672 MB / 0.603 GB, free: 6.926 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.5742, allocations: 0 / 0.603 GB, free: 6.926 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004701/0.5747, allocations: 162 kB / 0.6031 GB, free: 6.762 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000688/0.5754, allocations: 175.8 kB / 0.6033 GB, free: 6.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00326/0.5787, allocations: 3.257 MB / 0.6065 GB, free: 3.066 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005068/0.5792, allocations: 71.58 kB / 0.6065 GB, free: 2.996 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.37e-05/0.5793, allocations: 20 kB / 0.6066 GB, free: 2.977 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 () * 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.0004672/0.5797, allocations: 293 kB / 0.6068 GB, free: 2.68 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002174/0.58, allocations: 98.72 kB / 0.6069 GB, free: 2.582 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002089/0.5802, allocations: 95.39 kB / 0.607 GB, free: 2.488 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.5802, allocations: 7.938 kB / 0.607 GB, free: 2.48 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.5802, allocations: 8 kB / 0.607 GB, free: 2.473 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.5802, allocations: 3.984 kB / 0.607 GB, free: 2.469 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00114/0.5814, allocations: 0.7467 MB / 0.6078 GB, free: 1.672 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.5814, allocations: 0 / 0.6078 GB, free: 1.672 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005534/0.5819, allocations: 119.8 kB / 0.6079 GB, free: 1.555 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.582, allocations: 8 kB / 0.6079 GB, free: 1.547 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.984e-05/0.582, allocations: 15.98 kB / 0.6079 GB, free: 1.531 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.582, allocations: 7.938 kB / 0.6079 GB, free: 1.523 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.582, allocations: 3.984 kB / 0.6079 GB, free: 1.52 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.5839, allocations: 1.276 MB / 0.6092 GB, free: 224 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003052/0.5843, allocations: 216 kB / 0.6094 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.282e-05/0.5844, allocations: 19.92 kB / 0.6094 GB, free: 15.96 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004753/0.5848, allocations: 51.97 kB / 0.6094 GB, free: 15.91 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.533e-05/0.5849, allocations: 27.95 kB / 0.6095 GB, free: 15.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-05/0.585, allocations: 16 kB / 0.6095 GB, free: 15.87 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005883/0.5856, allocations: 499 kB / 0.61 GB, free: 15.39 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5856, allocations: 0 / 0.61 GB, free: 15.39 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009869/0.5866, allocations: 291 kB / 0.6102 GB, free: 15.1 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 () * 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.0001487/0.5867, allocations: 123.1 kB / 0.6104 GB, free: 14.97 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003825/0.5906, allocations: 2.016 MB / 0.6123 GB, free: 12.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.5906, allocations: 4 kB / 0.6123 GB, free: 12.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005705/0.5912, allocations: 301.2 kB / 0.6126 GB, free: 12.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/0.5925, allocations: 222.2 kB / 0.6128 GB, free: 12.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002847/0.5954, allocations: 1.778 MB / 0.6146 GB, free: 10.57 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006249/0.596, allocations: 0.9926 MB / 0.6155 GB, free: 9.543 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00041/0.5965, allocations: 101.1 kB / 0.6156 GB, free: 9.441 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/0.5966, allocations: 43.44 kB / 0.6157 GB, free: 9.398 MB / 442.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5966, allocations: 0 / 0.6157 GB, free: 9.398 MB / 442.7 MB Notification: Performance of Templates: time 0.02005/0.6167, allocations: 11.14 MB / 0.6266 GB, free: 14.32 MB / 458.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimPID/LimPID.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches