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.001539/0.001539, allocations: 183.2 kB / 15.76 MB, free: 6.363 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.601/1.601, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0008968/0.0008968, allocations: 82.88 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2174/0.2174, allocations: 43.57 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003109/0.0003107, allocations: 8 kB / 431.4 MB, free: 19.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1205, allocations: 58.86 MB / 490.2 MB, free: 8.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4246/0.5452, allocations: 89.14 MB / 0.5658 GB, free: 10.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001815/0.5455, allocations: 69.41 kB / 0.5659 GB, free: 10.67 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04004/0.5855, allocations: 15.63 MB / 0.5811 GB, free: 13.58 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.5856, allocations: 0 / 0.5811 GB, free: 13.58 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.233e-05/0.5857, allocations: 27.94 kB / 0.5812 GB, free: 13.55 MB / 394.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.001932/0.5876, allocations: 1.195 MB / 0.5823 GB, free: 12.37 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.5876, allocations: 8.031 kB / 0.5823 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001776/0.5878, allocations: 118.5 kB / 0.5825 GB, free: 12.25 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009986/0.5888, allocations: 0.6402 MB / 0.5831 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.198e-05/0.5889, allocations: 56.25 kB / 0.5831 GB, free: 11.62 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.922e-05/0.589, allocations: 58.69 kB / 0.5832 GB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.5902, allocations: 0.751 MB / 0.5839 GB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/0.5903, allocations: 7.891 kB / 0.5839 GB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.006e-05/0.5903, allocations: 29.42 kB / 0.584 GB, free: 10.96 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.029e-05/0.5904, allocations: 16 kB / 0.584 GB, free: 10.95 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.5915, allocations: 0.5876 MB / 0.5845 GB, free: 10.53 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003491/0.595, allocations: 2.779 MB / 0.5873 GB, free: 8.109 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.5966, allocations: 0.7367 MB / 0.588 GB, free: 7.523 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.195e-05/0.5967, allocations: 16.33 kB / 0.588 GB, free: 7.508 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.5967, allocations: 45.16 kB / 0.588 GB, free: 7.461 MB / 394.7 MB Notification: Performance of pre-optimization done (n=52): time 7.574e-06/0.5967, allocations: 3.984 kB / 0.588 GB, free: 7.457 MB / 394.7 MB Notification: Performance of matching and sorting (n=52): time 0.001731/0.5985, allocations: 0.8729 MB / 0.5889 GB, free: 6.781 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.5986, allocations: 243.3 kB / 0.5891 GB, free: 6.488 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006709/0.5993, allocations: 0.612 MB / 0.5897 GB, free: 6.008 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.884e-05/0.5993, allocations: 39.08 kB / 0.5898 GB, free: 5.973 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003279/0.5996, allocations: 436.8 kB / 0.5902 GB, free: 5.723 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001557/0.5998, allocations: 185.3 kB / 0.5904 GB, free: 5.566 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.483e-05/0.5999, allocations: 11 kB / 0.5904 GB, free: 5.562 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.6, allocations: 336.8 kB / 0.5907 GB, free: 5.238 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004741/0.6005, allocations: 241.1 kB / 0.5909 GB, free: 5.07 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005684/0.601, allocations: 383.3 kB / 0.5913 GB, free: 4.73 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000507/0.6016, allocations: 275.4 kB / 0.5915 GB, free: 4.555 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.6016, allocations: 4 kB / 0.5915 GB, free: 4.551 MB / 394.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002418/0.604, allocations: 1.097 MB / 0.5926 GB, free: 3.645 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004637/0.6045, allocations: 1.155 MB / 0.5937 GB, free: 2.434 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.6045, allocations: 4 kB / 0.5938 GB, free: 2.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001286/0.6058, allocations: 363.1 kB / 0.5941 GB, free: 2.121 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005553/0.6064, allocations: 131.1 kB / 0.5942 GB, free: 1.996 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004218/0.6106, allocations: 3.853 MB / 0.598 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005947/0.6112, allocations: 89.45 kB / 0.5981 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.381e-05/0.6112, allocations: 27.42 kB / 0.5981 GB, free: 14.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.6113, allocations: 4 kB / 0.5981 GB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001415/0.6127, allocations: 0.6677 MB / 0.5988 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-06/0.6127, allocations: 4 kB / 0.5988 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004808/0.6132, allocations: 146.5 kB / 0.5989 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007227/0.6139, allocations: 182.5 kB / 0.5991 GB, free: 13.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003294/0.6172, allocations: 3.306 MB / 0.6023 GB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005786/0.6178, allocations: 74.06 kB / 0.6024 GB, free: 9.992 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.653e-05/0.6179, allocations: 19.94 kB / 0.6024 GB, free: 9.977 MB / 410.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.0005677/0.6185, allocations: 297.2 kB / 0.6027 GB, free: 9.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002229/0.6187, allocations: 90.88 kB / 0.6028 GB, free: 9.641 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001707/0.6189, allocations: 96.33 kB / 0.6029 GB, free: 9.594 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.6189, allocations: 4 kB / 0.6029 GB, free: 9.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.6189, allocations: 8 kB / 0.6029 GB, free: 9.582 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.6189, allocations: 3.984 kB / 0.6029 GB, free: 9.578 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.62, allocations: 0.7413 MB / 0.6036 GB, free: 8.984 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.62, allocations: 0 / 0.6036 GB, free: 8.984 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005515/0.6206, allocations: 123.3 kB / 0.6037 GB, free: 8.867 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.6206, allocations: 11.98 kB / 0.6037 GB, free: 8.855 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.743e-05/0.6206, allocations: 11.38 kB / 0.6037 GB, free: 8.852 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.6207, allocations: 8 kB / 0.6037 GB, free: 8.844 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6207, allocations: 3.938 kB / 0.6037 GB, free: 8.84 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001835/0.6225, allocations: 1.311 MB / 0.605 GB, free: 7.758 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00027/0.6228, allocations: 215.5 kB / 0.6052 GB, free: 7.559 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.726e-05/0.6229, allocations: 13.81 kB / 0.6052 GB, free: 7.555 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004831/0.6234, allocations: 58.08 kB / 0.6053 GB, free: 7.504 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.13e-05/0.6235, allocations: 30.91 kB / 0.6053 GB, free: 7.477 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.912e-05/0.6235, allocations: 15.25 kB / 0.6053 GB, free: 7.465 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006288/0.6241, allocations: 498.7 kB / 0.6058 GB, free: 7.102 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6241, allocations: 3.938 kB / 0.6058 GB, free: 7.098 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009608/0.6251, allocations: 273.1 kB / 0.6061 GB, free: 6.855 MB / 410.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.0001669/0.6253, allocations: 117.9 kB / 0.6062 GB, free: 6.734 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003891/0.6292, allocations: 1.668 MB / 0.6078 GB, free: 5.277 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.6292, allocations: 0 / 0.6078 GB, free: 5.277 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006029/0.6298, allocations: 314.7 kB / 0.6081 GB, free: 5.043 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/0.6309, allocations: 195.7 kB / 0.6083 GB, free: 4.895 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002915/0.6339, allocations: 1.777 MB / 0.61 GB, free: 3.211 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005533/0.6344, allocations: 1 MB / 0.611 GB, free: 2.18 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004284/0.6349, allocations: 93.19 kB / 0.6111 GB, free: 2.09 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001582/0.635, allocations: 47.44 kB / 0.6112 GB, free: 2.043 MB / 410.7 MB Notification: Performance of SimCode: time 8.42e-07/0.635, allocations: 0 / 0.6112 GB, free: 2.043 MB / 410.7 MB Notification: Performance of Templates: time 0.01799/0.653, allocations: 10.39 MB / 0.6213 GB, free: 7.672 MB / 426.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/jenkins/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