Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001058/0.001057, allocations: 176.5 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.224/1.224, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008959/0.0008959, allocations: 93.52 kB / 292.1 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3315/0.3315, allocations: 44.22 MB / 387.5 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002853/0.0002855, allocations: 8 kB / 459.9 MB, free: 1.539 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3091, allocations: 61.91 MB / 0.5096 GB, free: 38.06 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1124/0.4215, allocations: 90.07 MB / 0.5975 GB, free: 5.07 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.4218, allocations: 75.97 kB / 0.5976 GB, free: 4.996 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03902/0.4608, allocations: 15.41 MB / 0.6126 GB, free: 5.543 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4608, allocations: 0 / 0.6126 GB, free: 5.543 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.871e-05/0.4609, allocations: 24 kB / 0.6127 GB, free: 5.52 MB / 426.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.00182/0.4627, allocations: 1.183 MB / 0.6138 GB, free: 4.285 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.4628, allocations: 8.031 kB / 0.6138 GB, free: 4.277 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001684/0.463, allocations: 114.6 kB / 0.6139 GB, free: 4.164 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009019/0.4639, allocations: 0.6249 MB / 0.6145 GB, free: 3.496 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.219e-05/0.4639, allocations: 49.31 kB / 0.6146 GB, free: 3.445 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.734e-05/0.464, allocations: 71.98 kB / 0.6147 GB, free: 3.375 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.4652, allocations: 0.7484 MB / 0.6154 GB, free: 2.57 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.4652, allocations: 0 / 0.6154 GB, free: 2.57 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.401e-05/0.4653, allocations: 28 kB / 0.6154 GB, free: 2.543 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/0.4653, allocations: 19.95 kB / 0.6154 GB, free: 2.523 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001113/0.4665, allocations: 0.5924 MB / 0.616 GB, free: 1.934 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003219/0.4697, allocations: 2.78 MB / 0.6187 GB, free: 15.05 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001443/0.4711, allocations: 0.7378 MB / 0.6194 GB, free: 14.28 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.166e-05/0.4712, allocations: 4 kB / 0.6194 GB, free: 14.28 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.579e-05/0.4712, allocations: 46.44 kB / 0.6195 GB, free: 14.22 MB / 442.7 MB Notification: Performance of pre-optimization done (n=52): time 2.144e-06/0.4713, allocations: 4 kB / 0.6195 GB, free: 14.22 MB / 442.7 MB Notification: Performance of matching and sorting (n=52): time 0.001692/0.473, allocations: 0.8692 MB / 0.6203 GB, free: 13.35 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.4731, allocations: 239.3 kB / 0.6206 GB, free: 13.06 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007656/0.4738, allocations: 0.6023 MB / 0.6212 GB, free: 12.45 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.065e-05/0.4739, allocations: 37.7 kB / 0.6212 GB, free: 12.41 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002897/0.4742, allocations: 436.4 kB / 0.6216 GB, free: 11.97 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.4744, allocations: 181.3 kB / 0.6218 GB, free: 11.79 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.747e-05/0.4744, allocations: 12 kB / 0.6218 GB, free: 11.78 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.4745, allocations: 329.9 kB / 0.6221 GB, free: 11.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004835/0.475, allocations: 245 kB / 0.6223 GB, free: 11.21 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005604/0.4756, allocations: 381.4 kB / 0.6227 GB, free: 10.79 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005171/0.4761, allocations: 273.6 kB / 0.623 GB, free: 10.53 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.4761, allocations: 0 / 0.623 GB, free: 10.53 MB / 442.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00236/0.4785, allocations: 1.109 MB / 0.6241 GB, free: 9.402 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003723/0.4789, allocations: 1.134 MB / 0.6252 GB, free: 8.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.4789, allocations: 4 kB / 0.6252 GB, free: 8.176 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/0.4801, allocations: 363.1 kB / 0.6255 GB, free: 7.809 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005304/0.4806, allocations: 135.8 kB / 0.6256 GB, free: 7.676 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004229/0.4848, allocations: 3.841 MB / 0.6294 GB, free: 3.621 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000686/0.4856, allocations: 103.3 kB / 0.6295 GB, free: 3.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.121e-05/0.4856, allocations: 20 kB / 0.6295 GB, free: 3.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.4856, allocations: 4 kB / 0.6295 GB, free: 3.496 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001446/0.4871, allocations: 0.6681 MB / 0.6302 GB, free: 2.824 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.4871, allocations: 4 kB / 0.6302 GB, free: 2.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000479/0.4876, allocations: 145.8 kB / 0.6303 GB, free: 2.672 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006829/0.4883, allocations: 175.8 kB / 0.6305 GB, free: 2.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003342/0.4916, allocations: 3.308 MB / 0.6337 GB, free: 14.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005378/0.4922, allocations: 75.53 kB / 0.6338 GB, free: 14.85 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.64e-05/0.4922, allocations: 20 kB / 0.6338 GB, free: 14.83 MB / 458.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.000474/0.4927, allocations: 293 kB / 0.6341 GB, free: 14.54 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.4929, allocations: 90.88 kB / 0.6342 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001634/0.4931, allocations: 99.09 kB / 0.6343 GB, free: 14.35 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.4931, allocations: 4 kB / 0.6343 GB, free: 14.34 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.4931, allocations: 3.984 kB / 0.6343 GB, free: 14.34 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.4931, allocations: 4 kB / 0.6343 GB, free: 14.34 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009314/0.494, allocations: 0.7427 MB / 0.635 GB, free: 13.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.494, allocations: 0 / 0.635 GB, free: 13.54 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005442/0.4946, allocations: 119.9 kB / 0.6351 GB, free: 13.42 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.4946, allocations: 4 kB / 0.6351 GB, free: 13.42 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.739e-05/0.4947, allocations: 15.98 kB / 0.6351 GB, free: 13.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.4947, allocations: 4 kB / 0.6351 GB, free: 13.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4947, allocations: 0 / 0.6351 GB, free: 13.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001828/0.4965, allocations: 1.32 MB / 0.6364 GB, free: 12.04 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002903/0.4968, allocations: 215.8 kB / 0.6366 GB, free: 11.81 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.669e-05/0.4969, allocations: 12 kB / 0.6366 GB, free: 11.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005002/0.4974, allocations: 51.95 kB / 0.6367 GB, free: 11.75 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.789e-05/0.4975, allocations: 39.91 kB / 0.6367 GB, free: 11.71 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.428e-05/0.4975, allocations: 15.98 kB / 0.6367 GB, free: 11.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006091/0.4982, allocations: 479 kB / 0.6372 GB, free: 11.23 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4982, allocations: 0 / 0.6372 GB, free: 11.23 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0009323/0.4991, allocations: 279.1 kB / 0.6375 GB, free: 10.96 MB / 458.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.0001652/0.4993, allocations: 119.1 kB / 0.6376 GB, free: 10.83 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00373/0.503, allocations: 1.676 MB / 0.6392 GB, free: 9.121 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.503, allocations: 0 / 0.6392 GB, free: 9.121 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005769/0.5036, allocations: 299.7 kB / 0.6395 GB, free: 8.828 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/0.5047, allocations: 217.4 kB / 0.6397 GB, free: 8.621 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002503/0.5072, allocations: 1.752 MB / 0.6414 GB, free: 6.828 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004905/0.5077, allocations: 0.9998 MB / 0.6424 GB, free: 5.805 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.000333/0.5081, allocations: 85.12 kB / 0.6425 GB, free: 5.723 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.5082, allocations: 43.44 kB / 0.6425 GB, free: 5.68 MB / 458.7 MB Notification: Performance of SimCode: time 6.21e-07/0.5082, allocations: 0 / 0.6425 GB, free: 5.68 MB / 458.7 MB Notification: Performance of Templates: time 0.01601/0.5242, allocations: 10.34 MB / 0.6526 GB, free: 11.41 MB / 474.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches