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.001048/0.001048, allocations: 182.8 kB / 13.19 MB, free: 2.129 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.316/1.316, allocations: 205.2 MB / 218.9 MB, free: 9.195 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.0008347/0.0008351, allocations: 101 kB / 267.1 MB, free: 9.266 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.3478/0.3478, allocations: 43.47 MB / 358.6 MB, free: 51.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.447e-05/2.45e-05, allocations: 0 / 425.3 MB, free: 8.219 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1141, allocations: 58.85 MB / 484.1 MB, free: 13.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3634/0.4776, allocations: 89.06 MB / 0.5598 GB, free: 15.3 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001695/0.4778, allocations: 68.53 kB / 0.5598 GB, free: 15.28 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03505/0.5129, allocations: 15.58 MB / 0.575 GB, free: 3.566 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5129, allocations: 4 kB / 0.5751 GB, free: 3.562 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.39e-05/0.513, allocations: 23.94 kB / 0.5751 GB, free: 3.539 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.001316/0.5143, allocations: 1.055 MB / 0.5761 GB, free: 2.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.5144, allocations: 8.031 kB / 0.5761 GB, free: 2.492 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001388/0.5145, allocations: 114.6 kB / 0.5762 GB, free: 2.379 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008354/0.5153, allocations: 0.6462 MB / 0.5769 GB, free: 1.789 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.999e-05/0.5154, allocations: 45.38 kB / 0.5769 GB, free: 1.766 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.468e-05/0.5155, allocations: 67.44 kB / 0.577 GB, free: 1.723 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008424/0.5163, allocations: 0.6717 MB / 0.5776 GB, free: 1.203 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.5163, allocations: 7.953 kB / 0.5776 GB, free: 1.195 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.183e-05/0.5164, allocations: 24.12 kB / 0.5776 GB, free: 1.191 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.5164, allocations: 16 kB / 0.5777 GB, free: 1.176 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005993/0.517, allocations: 441.9 kB / 0.5781 GB, free: 0.9102 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003174/0.5202, allocations: 2.775 MB / 0.5808 GB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009709/0.5212, allocations: 0.5641 MB / 0.5813 GB, free: 14.08 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002983/0.5215, allocations: 227.5 kB / 0.5816 GB, free: 13.93 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.042e-05/0.5216, allocations: 8 kB / 0.5816 GB, free: 13.92 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.5216, allocations: 49.62 kB / 0.5816 GB, free: 13.87 MB / 410.7 MB Notification: Performance of pre-optimization done (n=52): time 1.893e-06/0.5216, allocations: 0 / 0.5816 GB, free: 13.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.000828/0.5225, allocations: 488.6 kB / 0.5821 GB, free: 13.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001321/0.5226, allocations: 247.3 kB / 0.5823 GB, free: 13.22 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006991/0.5233, allocations: 0.6056 MB / 0.5829 GB, free: 12.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.671e-05/0.5234, allocations: 39.45 kB / 0.5829 GB, free: 12.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002674/0.5236, allocations: 433.7 kB / 0.5834 GB, free: 12.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.5238, allocations: 188.5 kB / 0.5835 GB, free: 12.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.718e-05/0.5238, allocations: 14.81 kB / 0.5836 GB, free: 12.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.5239, allocations: 328.8 kB / 0.5839 GB, free: 11.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002524/0.5242, allocations: 167.6 kB / 0.584 GB, free: 11.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000364/0.5246, allocations: 294.9 kB / 0.5843 GB, free: 11.63 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002837/0.5249, allocations: 199.6 kB / 0.5845 GB, free: 11.51 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.5249, allocations: 4 kB / 0.5845 GB, free: 11.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001779/0.5267, allocations: 0.9001 MB / 0.5854 GB, free: 10.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004455/0.5271, allocations: 1.13 MB / 0.5865 GB, free: 9.582 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.5271, allocations: 4 kB / 0.5865 GB, free: 9.578 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008431/0.528, allocations: 266.3 kB / 0.5867 GB, free: 9.363 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005479/0.5285, allocations: 127.3 kB / 0.5869 GB, free: 9.242 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003333/0.5319, allocations: 3.576 MB / 0.5904 GB, free: 5.723 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005335/0.5324, allocations: 101.9 kB / 0.5905 GB, free: 5.633 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.327e-05/0.5325, allocations: 21.62 kB / 0.5905 GB, free: 5.617 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.989e-06/0.5325, allocations: 4 kB / 0.5905 GB, free: 5.613 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001031/0.5336, allocations: 0.5684 MB / 0.591 GB, free: 5.211 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.5336, allocations: 7.938 kB / 0.591 GB, free: 5.203 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003725/0.5339, allocations: 122.7 kB / 0.5912 GB, free: 5.102 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006965/0.5347, allocations: 174.7 kB / 0.5913 GB, free: 4.938 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002724/0.5374, allocations: 3.134 MB / 0.5944 GB, free: 1.832 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000463/0.5379, allocations: 70.64 kB / 0.5945 GB, free: 1.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.291e-05/0.5379, allocations: 21.69 kB / 0.5945 GB, free: 1.754 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 () * 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.0001562/0.5381, allocations: 146.8 kB / 0.5946 GB, free: 1.621 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/0.5383, allocations: 94.86 kB / 0.5947 GB, free: 1.527 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002245/0.5385, allocations: 98.52 kB / 0.5948 GB, free: 1.477 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.5385, allocations: 11.98 kB / 0.5948 GB, free: 1.465 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.5385, allocations: 0 / 0.5948 GB, free: 1.465 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.5385, allocations: 0 / 0.5948 GB, free: 1.465 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009121/0.5394, allocations: 0.7421 MB / 0.5955 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.5394, allocations: 0 / 0.5955 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005518/0.54, allocations: 126.8 kB / 0.5957 GB, free: 0.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.72e-06/0.54, allocations: 4 kB / 0.5957 GB, free: 0.7461 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.381e-05/0.5401, allocations: 10.31 kB / 0.5957 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.5401, allocations: 8 kB / 0.5957 GB, free: 0.7344 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5401, allocations: 3.938 kB / 0.5957 GB, free: 0.7305 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001175/0.5413, allocations: 1.09 MB / 0.5967 GB, free: 15.85 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002393/0.5415, allocations: 212 kB / 0.5969 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.056e-05/0.5416, allocations: 9.312 kB / 0.597 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004795/0.5421, allocations: 60.33 kB / 0.597 GB, free: 15.61 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.463e-05/0.5422, allocations: 31.77 kB / 0.597 GB, free: 15.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.613e-05/0.5422, allocations: 22.98 kB / 0.5971 GB, free: 15.56 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005127/0.5427, allocations: 492.3 kB / 0.5975 GB, free: 15.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5428, allocations: 0 / 0.5975 GB, free: 15.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008073/0.5436, allocations: 269.1 kB / 0.5978 GB, free: 14.96 MB / 426.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.000159/0.5437, allocations: 112 kB / 0.5979 GB, free: 14.86 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003046/0.5468, allocations: 1.502 MB / 0.5994 GB, free: 13.58 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5468, allocations: 4 kB / 0.5994 GB, free: 13.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003116/0.5471, allocations: 228.5 kB / 0.5996 GB, free: 13.43 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.5481, allocations: 206.2 kB / 0.5998 GB, free: 13.27 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002039/0.5502, allocations: 1.129 MB / 0.6009 GB, free: 12.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006071/0.5508, allocations: 1.006 MB / 0.6019 GB, free: 11.2 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005841/0.5514, allocations: 147.9 kB / 0.602 GB, free: 11.05 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.5515, allocations: 39.44 kB / 0.602 GB, free: 11.01 MB / 426.7 MB Notification: Performance of SimCode: time 5.91e-07/0.5516, allocations: 4 kB / 0.6021 GB, free: 11.01 MB / 426.7 MB Notification: Performance of Templates: time 0.01884/0.5704, allocations: 12.19 MB / 0.614 GB, free: 14.87 MB / 442.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