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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 103.2 kB / 15.98 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 198.9 kB / 16.91 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.658/1.658, allocations: 205.1 MB / 222.8 MB, free: 4.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4216/0.4216, allocations: 43.5 MB / 313.6 MB, free: 8.523 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001627, allocations: 64.47 kB / 382.2 MB, free: 8.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.1769, allocations: 57.79 MB / 440 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.006688/0.1837, allocations: 4.397 MB / 444.4 MB, free: 10.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003803/0.1875, allocations: 1.571 MB / 446 MB, free: 8.746 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006857/0.1882, allocations: 35.81 kB / 446 MB, free: 8.711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004818/0.1888, allocations: 114.9 kB / 446.1 MB, free: 8.598 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004175/0.1892, allocations: 130.8 kB / 446.2 MB, free: 8.469 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001341/0.1906, allocations: 0.5344 MB / 446.8 MB, free: 7.934 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001221/0.1918, allocations: 1.035 MB / 447.8 MB, free: 6.895 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000736/0.1925, allocations: 451.4 kB / 448.3 MB, free: 6.434 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004606/0.193, allocations: 374.1 kB / 448.6 MB, free: 6.066 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004435/0.1935, allocations: 385.7 kB / 449 MB, free: 5.688 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001294/0.1936, allocations: 88 kB / 449.1 MB, free: 5.602 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001315/0.1937, allocations: 84 kB / 449.2 MB, free: 5.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002111/0.194, allocations: 203.2 kB / 449.4 MB, free: 5.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004266/0.1944, allocations: 445.2 kB / 449.8 MB, free: 4.883 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001121/0.1955, allocations: 1.004 MB / 450.8 MB, free: 3.875 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.075e-05/0.1955, allocations: 0 / 450.8 MB, free: 3.875 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.596e-06/0.1956, allocations: 0 / 450.8 MB, free: 3.875 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.774e-05/0.1956, allocations: 0 / 450.8 MB, free: 3.875 MB / 382.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.002241/0.1978, allocations: 1.3 MB / 452.1 MB, free: 2.523 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.1979, allocations: 8.031 kB / 452.1 MB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001784/0.1981, allocations: 123.4 kB / 452.2 MB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008609/0.1989, allocations: 0.6436 MB / 452.9 MB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.04e-05/0.199, allocations: 49.69 kB / 452.9 MB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.1991, allocations: 64.38 kB / 453 MB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.2004, allocations: 0.747 MB / 453.7 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.2004, allocations: 3.938 kB / 453.7 MB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.446e-05/0.2005, allocations: 28 kB / 453.8 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.158e-05/0.2005, allocations: 16 kB / 453.8 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.2016, allocations: 0.5459 MB / 454.3 MB, free: 200 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3385/0.5402, allocations: 2.718 MB / 457 MB, free: 48.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/0.5414, allocations: 0.6604 MB / 457.7 MB, free: 47.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004965/0.5419, allocations: 286.4 kB / 458 MB, free: 47.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.658e-05/0.542, allocations: 5.781 kB / 458 MB, free: 47.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/0.542, allocations: 46.28 kB / 458 MB, free: 47.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 2.404e-06/0.542, allocations: 1.938 kB / 458 MB, free: 47.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.001631/0.5437, allocations: 0.8057 MB / 458.8 MB, free: 47.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.503e-05/0.5438, allocations: 238.6 kB / 459.1 MB, free: 47.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006537/0.5445, allocations: 0.7156 MB / 459.8 MB, free: 47.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.133e-05/0.5445, allocations: 36.64 kB / 459.8 MB, free: 47.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002439/0.5448, allocations: 443 kB / 460.3 MB, free: 46.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.5449, allocations: 190.2 kB / 460.4 MB, free: 46.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/0.545, allocations: 95.23 kB / 460.5 MB, free: 46.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.5452, allocations: 334.4 kB / 460.9 MB, free: 46.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004529/0.5456, allocations: 227.7 kB / 461.1 MB, free: 46.17 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004972/0.5461, allocations: 363.2 kB / 461.4 MB, free: 45.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008847/0.547, allocations: 0.5556 MB / 462 MB, free: 45.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.547, allocations: 4.531 kB / 462 MB, free: 45.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002379/0.5494, allocations: 1.044 MB / 463 MB, free: 45.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.816e-05/0.5495, allocations: 10.03 kB / 463.1 MB, free: 45.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.5495, allocations: 5.781 kB / 463.1 MB, free: 45.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/0.5506, allocations: 319.2 kB / 463.4 MB, free: 45.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005115/0.5511, allocations: 126.4 kB / 463.5 MB, free: 45.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007529/0.5587, allocations: 7.273 MB / 470.8 MB, free: 39.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008868/0.5596, allocations: 80.67 kB / 470.8 MB, free: 39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/0.5598, allocations: 23.53 kB / 470.9 MB, free: 38.99 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000895/0.5607, allocations: 344.9 kB / 471.2 MB, free: 38.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005463/0.5613, allocations: 324.7 kB / 471.5 MB, free: 38.58 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008546/0.5621, allocations: 0.4996 MB / 472 MB, free: 38.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.809e-06/0.5622, allocations: 0 / 472 MB, free: 38.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001938/0.5641, allocations: 0.7397 MB / 472.8 MB, free: 38.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.5642, allocations: 6.406 kB / 472.8 MB, free: 38.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.5642, allocations: 3.156 kB / 472.8 MB, free: 38.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005898/0.5648, allocations: 147.9 kB / 472.9 MB, free: 37.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007438/0.5655, allocations: 175.3 kB / 473.1 MB, free: 37.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003202/0.5688, allocations: 3.425 MB / 476.5 MB, free: 34.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005993/0.5694, allocations: 67.72 kB / 476.6 MB, free: 34.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.178e-05/0.5694, allocations: 20.38 kB / 476.6 MB, free: 34.86 MB / 382.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 () * 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002946/0.5697, allocations: 218.8 kB / 476.8 MB, free: 34.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003718/0.5701, allocations: 94.28 kB / 476.9 MB, free: 34.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003093/0.5704, allocations: 98.41 kB / 477 MB, free: 34.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.5705, allocations: 6.188 kB / 477 MB, free: 34.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.261e-05/0.5705, allocations: 4 kB / 477 MB, free: 34.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.166e-05/0.5705, allocations: 6.594 kB / 477 MB, free: 34.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001401/0.5719, allocations: 0.7332 MB / 477.7 MB, free: 34.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.649e-06/0.5719, allocations: 0 / 477.7 MB, free: 34.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005536/0.5725, allocations: 115.6 kB / 477.9 MB, free: 34.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.788e-06/0.5725, allocations: 3.125 kB / 477.9 MB, free: 34.13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.075e-05/0.5726, allocations: 11.06 kB / 477.9 MB, free: 34.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.5726, allocations: 3.312 kB / 477.9 MB, free: 34.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.5726, allocations: 4 kB / 477.9 MB, free: 34.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002069/0.5747, allocations: 1.208 MB / 479.1 MB, free: 33.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003795/0.5751, allocations: 220.7 kB / 479.3 MB, free: 33.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001445/0.5752, allocations: 11.19 kB / 479.3 MB, free: 33.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005315/0.5758, allocations: 40.95 kB / 479.4 MB, free: 33.24 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.5759, allocations: 30.78 kB / 479.4 MB, free: 33.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.414e-05/0.5759, allocations: 16.84 kB / 479.4 MB, free: 33.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000695/0.5766, allocations: 495.6 kB / 479.9 MB, free: 33.03 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5766, allocations: 0 / 479.9 MB, free: 33.03 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00126/0.5779, allocations: 282.1 kB / 480.2 MB, free: 32.95 MB / 382.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 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001674/0.5781, allocations: 125.2 kB / 480.3 MB, free: 32.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004368/0.5825, allocations: 1.905 MB / 482.2 MB, free: 31.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.085e-06/0.5825, allocations: 448 / 482.2 MB, free: 31.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005682/0.5831, allocations: 282 kB / 482.5 MB, free: 31.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/0.5849, allocations: 244.5 kB / 482.7 MB, free: 31.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003826/0.5888, allocations: 1.839 MB / 484.5 MB, free: 30.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008705/0.5897, allocations: 0.9883 MB / 485.5 MB, free: 29.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000603/0.5903, allocations: 91.53 kB / 485.6 MB, free: 29.85 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002071/0.5905, allocations: 49.88 kB / 485.7 MB, free: 29.84 MB / 382.1 MB Notification: Performance of SimCode: time 3.867e-06/0.5906, allocations: 3.062 kB / 485.7 MB, free: 29.84 MB / 382.1 MB Notification: Performance of Templates: time 0.03246/0.623, allocations: 12.09 MB / 497.8 MB, free: 29.04 MB / 382.1 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