Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_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_3.2.3_cpp_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001436/0.001436, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.024/2.024, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001093/0.001093, allocations: 100.6 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2934/0.2934, allocations: 43.48 MB / 353.5 MB, free: 2.285 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.636e-05/2.648e-05, allocations: 4 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4037/0.4038, allocations: 58.85 MB / 477.1 MB, free: 5.246 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1696/0.5734, allocations: 88.4 MB / 0.5522 GB, free: 10.93 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.5738, allocations: 75.41 kB / 0.5523 GB, free: 10.86 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06761/0.6414, allocations: 15.46 MB / 0.5674 GB, free: 11.36 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6414, allocations: 0 / 0.5674 GB, free: 11.36 MB / 411.1 MB Notification: Performance of Transformations before backend: time 0.0001103/0.6416, allocations: 20 kB / 0.5674 GB, free: 11.34 MB / 411.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.003277/0.6449, allocations: 1.059 MB / 0.5684 GB, free: 10.23 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.6449, allocations: 12.03 kB / 0.5684 GB, free: 10.22 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005201/0.6455, allocations: 118.5 kB / 0.5686 GB, free: 10.11 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002007/0.6475, allocations: 0.6366 MB / 0.5692 GB, free: 9.426 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.734e-05/0.6476, allocations: 21.09 kB / 0.5692 GB, free: 9.406 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001715/0.6478, allocations: 44 kB / 0.5692 GB, free: 9.363 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001331/0.6491, allocations: 394.6 kB / 0.5696 GB, free: 8.98 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001606/0.6507, allocations: 0.5804 MB / 0.5702 GB, free: 8.34 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.767e-05/0.6508, allocations: 4 kB / 0.5702 GB, free: 8.336 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.95e-05/0.6509, allocations: 0 / 0.5702 GB, free: 8.336 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.494e-05/0.6509, allocations: 16 kB / 0.5702 GB, free: 8.32 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00655/0.6575, allocations: 2.659 MB / 0.5728 GB, free: 5.574 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001789/0.6593, allocations: 0.5306 MB / 0.5733 GB, free: 5.008 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000551/0.6599, allocations: 205.1 kB / 0.5735 GB, free: 4.797 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.327e-05/0.66, allocations: 12 kB / 0.5735 GB, free: 4.785 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.718e-05/0.6601, allocations: 50.48 kB / 0.5736 GB, free: 4.727 MB / 411.1 MB Notification: Performance of pre-optimization done (n=52): time 3.476e-06/0.6601, allocations: 0 / 0.5736 GB, free: 4.727 MB / 411.1 MB Notification: Performance of matching and sorting (n=52): time 0.001402/0.6615, allocations: 460.4 kB / 0.574 GB, free: 4.27 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001434/0.6617, allocations: 243.3 kB / 0.5742 GB, free: 3.977 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.6627, allocations: 0.5201 MB / 0.5748 GB, free: 3.449 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 8.922e-05/0.6628, allocations: 25.7 kB / 0.5748 GB, free: 3.418 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004459/0.6633, allocations: 446.6 kB / 0.5752 GB, free: 2.98 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000229/0.6635, allocations: 181.3 kB / 0.5754 GB, free: 2.801 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4e-05/0.6636, allocations: 0 / 0.5754 GB, free: 2.801 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.6638, allocations: 334.8 kB / 0.5757 GB, free: 2.465 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004492/0.6642, allocations: 153.1 kB / 0.5758 GB, free: 2.316 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005829/0.6648, allocations: 279.1 kB / 0.5761 GB, free: 1.992 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005166/0.6654, allocations: 183.8 kB / 0.5763 GB, free: 1.812 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.6654, allocations: 0 / 0.5763 GB, free: 1.812 MB / 411.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003219/0.6686, allocations: 0.7856 MB / 0.5771 GB, free: 1.012 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005677/0.6692, allocations: 1.143 MB / 0.5782 GB, free: 15.79 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.6692, allocations: 0 / 0.5782 GB, free: 15.79 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/0.6708, allocations: 255.2 kB / 0.5784 GB, free: 15.52 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/0.6719, allocations: 131.9 kB / 0.5785 GB, free: 15.39 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005702/0.6776, allocations: 3.554 MB / 0.582 GB, free: 11.64 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009634/0.6786, allocations: 75.59 kB / 0.5821 GB, free: 11.57 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.719e-05/0.6787, allocations: 20 kB / 0.5821 GB, free: 11.55 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.6787, allocations: 4 kB / 0.5821 GB, free: 11.55 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00281/0.6816, allocations: 0.5121 MB / 0.5826 GB, free: 11.03 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.819e-05/0.6816, allocations: 4 kB / 0.5826 GB, free: 11.03 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000989/0.6826, allocations: 121.9 kB / 0.5827 GB, free: 10.9 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002363/0.685, allocations: 175.7 kB / 0.5829 GB, free: 10.73 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006312/0.6914, allocations: 3.004 MB / 0.5858 GB, free: 7.492 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009655/0.6924, allocations: 47.58 kB / 0.5859 GB, free: 7.445 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/0.6925, allocations: 20 kB / 0.5859 GB, free: 7.426 MB / 427.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 () * 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.0003695/0.6929, allocations: 124.8 kB / 0.586 GB, free: 7.297 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004929/0.6934, allocations: 98.98 kB / 0.5861 GB, free: 7.199 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003913/0.6939, allocations: 86.91 kB / 0.5862 GB, free: 7.109 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/0.6939, allocations: 4 kB / 0.5862 GB, free: 7.105 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.6939, allocations: 4 kB / 0.5862 GB, free: 7.102 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.6939, allocations: 0 / 0.5862 GB, free: 7.102 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002306/0.6963, allocations: 0.6536 MB / 0.5868 GB, free: 6.41 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.405e-05/0.6963, allocations: 3.953 kB / 0.5868 GB, free: 6.406 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001901/0.6982, allocations: 123.8 kB / 0.587 GB, free: 6.285 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.788e-05/0.6983, allocations: 4 kB / 0.587 GB, free: 6.281 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.4e-05/0.6984, allocations: 4 kB / 0.587 GB, free: 6.277 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-05/0.6984, allocations: 7.922 kB / 0.587 GB, free: 6.27 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/0.6984, allocations: 4 kB / 0.587 GB, free: 6.266 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003054/0.7015, allocations: 1.039 MB / 0.588 GB, free: 5.188 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006099/0.7022, allocations: 207.8 kB / 0.5882 GB, free: 4.965 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001823/0.7024, allocations: 4 kB / 0.5882 GB, free: 4.961 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001471/0.7039, allocations: 47.95 kB / 0.5882 GB, free: 4.914 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.7041, allocations: 39.91 kB / 0.5883 GB, free: 4.875 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.72e-05/0.7042, allocations: 15.94 kB / 0.5883 GB, free: 4.859 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.001177/0.7054, allocations: 411.2 kB / 0.5887 GB, free: 4.461 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.153e-06/0.7054, allocations: 0 / 0.5887 GB, free: 4.461 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.00227/0.7077, allocations: 246.9 kB / 0.5889 GB, free: 4.219 MB / 427.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 () * 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.0003043/0.708, allocations: 103.1 kB / 0.589 GB, free: 4.109 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.007976/0.716, allocations: 1.324 MB / 0.5903 GB, free: 2.758 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 1.496e-05/0.7161, allocations: 4 kB / 0.5903 GB, free: 2.754 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009354/0.7171, allocations: 208.8 kB / 0.5905 GB, free: 2.551 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002993/0.7201, allocations: 199.6 kB / 0.5907 GB, free: 2.363 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004929/0.7251, allocations: 1.126 MB / 0.5918 GB, free: 1.184 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001165/0.7263, allocations: 1.004 MB / 0.5928 GB, free: 156 kB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005325/0.7269, allocations: 43.44 kB / 0.5928 GB, free: 112 kB / 427.1 MB Notification: Performance of SimCode: time 1.673e-06/0.7269, allocations: 0 / 0.5928 GB, free: 112 kB / 427.1 MB Notification: Performance of Templates: time 0.0517/0.7786, allocations: 16.13 MB / 0.6086 GB, free: 15.98 MB / 459.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches