Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001105/0.001105, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009984/0.0009984, allocations: 99.72 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3513/0.3513, allocations: 44.83 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 59.91 kB / 465.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3378, allocations: 62.02 MB / 0.5151 GB, free: 37.77 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004011/0.3419, allocations: 4.347 MB / 0.5194 GB, free: 34.61 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002153/0.344, allocations: 1.547 MB / 0.5209 GB, free: 33.49 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003533/0.3444, allocations: 38.66 kB / 0.5209 GB, free: 33.47 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002787/0.3447, allocations: 117.9 kB / 0.521 GB, free: 33.39 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002818/0.345, allocations: 122 kB / 0.5212 GB, free: 33.3 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008562/0.3459, allocations: 0.5314 MB / 0.5217 GB, free: 32.98 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005935/0.3465, allocations: 0.9576 MB / 0.5226 GB, free: 32.5 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004874/0.347, allocations: 423.1 kB / 0.523 GB, free: 32.27 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002438/0.3472, allocations: 313.9 kB / 0.5233 GB, free: 32.11 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002917/0.3475, allocations: 361.5 kB / 0.5237 GB, free: 31.9 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.901e-05/0.3476, allocations: 41.16 kB / 0.5237 GB, free: 31.9 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.752e-05/0.3477, allocations: 38.44 kB / 0.5237 GB, free: 31.9 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001128/0.3478, allocations: 158.4 kB / 0.5239 GB, free: 31.8 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002361/0.348, allocations: 383 kB / 0.5243 GB, free: 31.53 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006446/0.3487, allocations: 0.93 MB / 0.5252 GB, free: 31.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3487, allocations: 0 / 0.5252 GB, free: 31.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.3487, allocations: 0 / 0.5252 GB, free: 31.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.3487, allocations: 0 / 0.5252 GB, free: 31.09 MB / 378.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.001809/0.3505, allocations: 1.287 MB / 0.5264 GB, free: 30.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.3506, allocations: 12.22 kB / 0.5264 GB, free: 30.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001314/0.3507, allocations: 119.2 kB / 0.5265 GB, free: 30.14 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006725/0.3514, allocations: 0.6219 MB / 0.5272 GB, free: 29.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.894e-05/0.3514, allocations: 47.06 kB / 0.5272 GB, free: 29.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.323e-05/0.3515, allocations: 69.12 kB / 0.5273 GB, free: 29.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009841/0.3525, allocations: 0.7479 MB / 0.528 GB, free: 29.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.3526, allocations: 0 / 0.528 GB, free: 29.24 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.825e-05/0.3526, allocations: 29.77 kB / 0.528 GB, free: 29.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/0.3526, allocations: 16.03 kB / 0.528 GB, free: 29.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009821/0.3536, allocations: 0.5489 MB / 0.5286 GB, free: 29.03 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002636/0.3563, allocations: 2.715 MB / 0.5312 GB, free: 27.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.3575, allocations: 0.6668 MB / 0.5319 GB, free: 26.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000493/0.358, allocations: 280.5 kB / 0.5321 GB, free: 26.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.222e-05/0.3581, allocations: 12.72 kB / 0.5322 GB, free: 26.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.3581, allocations: 41.5 kB / 0.5322 GB, free: 26.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=52): time 2.084e-06/0.3581, allocations: 0 / 0.5322 GB, free: 26.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=52): time 0.001491/0.3596, allocations: 0.7934 MB / 0.533 GB, free: 26.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.808e-05/0.3597, allocations: 244.9 kB / 0.5332 GB, free: 26.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006266/0.3603, allocations: 0.6959 MB / 0.5339 GB, free: 25.78 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.57e-05/0.3604, allocations: 36.33 kB / 0.5339 GB, free: 25.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002369/0.3606, allocations: 430.9 kB / 0.5343 GB, free: 25.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.3607, allocations: 187.5 kB / 0.5345 GB, free: 25.26 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/0.3609, allocations: 109.9 kB / 0.5346 GB, free: 25.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.207e-05/0.361, allocations: 328.6 kB / 0.5349 GB, free: 24.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004356/0.3614, allocations: 232.8 kB / 0.5352 GB, free: 24.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005042/0.3619, allocations: 354.1 kB / 0.5355 GB, free: 24.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008769/0.3628, allocations: 0.5614 MB / 0.536 GB, free: 24.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3628, allocations: 4 kB / 0.536 GB, free: 24.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002234/0.3651, allocations: 1.043 MB / 0.5371 GB, free: 23.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.3651, allocations: 6.375 kB / 0.5371 GB, free: 23.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.3651, allocations: 9.438 kB / 0.5371 GB, free: 23.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/0.3662, allocations: 316.9 kB / 0.5374 GB, free: 23.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005028/0.3667, allocations: 134.4 kB / 0.5375 GB, free: 23.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006765/0.3735, allocations: 6.761 MB / 0.5441 GB, free: 17.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005656/0.3741, allocations: 80.94 kB / 0.5442 GB, free: 17.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.803e-05/0.3741, allocations: 20.66 kB / 0.5442 GB, free: 17.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005772/0.3747, allocations: 354 kB / 0.5445 GB, free: 17.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004423/0.3751, allocations: 330.5 kB / 0.5449 GB, free: 17.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007448/0.3759, allocations: 0.4931 MB / 0.5453 GB, free: 17.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.745e-06/0.3759, allocations: 5.5 kB / 0.5453 GB, free: 17.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001445/0.3774, allocations: 0.7311 MB / 0.5461 GB, free: 16.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.3774, allocations: 7.828 kB / 0.5461 GB, free: 16.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3774, allocations: 2.281 kB / 0.5461 GB, free: 16.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004936/0.3779, allocations: 142.1 kB / 0.5462 GB, free: 16.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007094/0.3786, allocations: 170.8 kB / 0.5464 GB, free: 16.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002622/0.3812, allocations: 3.188 MB / 0.5495 GB, free: 14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004633/0.3817, allocations: 62.14 kB / 0.5495 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.489e-05/0.3818, allocations: 24.64 kB / 0.5496 GB, free: 13.96 MB / 378.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 (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.0001886/0.382, allocations: 214.5 kB / 0.5498 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.3821, allocations: 100.8 kB / 0.5499 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001932/0.3823, allocations: 93.89 kB / 0.55 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.3823, allocations: 5.344 kB / 0.55 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3823, allocations: 1.812 kB / 0.55 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.3824, allocations: 4.547 kB / 0.55 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009575/0.3833, allocations: 0.7342 MB / 0.5507 GB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.3833, allocations: 10.03 kB / 0.5507 GB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005323/0.3839, allocations: 112 kB / 0.5508 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.3839, allocations: 1.938 kB / 0.5508 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.589e-05/0.3839, allocations: 12.55 kB / 0.5508 GB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.3839, allocations: 4.578 kB / 0.5508 GB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3839, allocations: 5.812 kB / 0.5508 GB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008409/0.3924, allocations: 5.482 MB / 0.5562 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002286/0.3926, allocations: 213.1 kB / 0.5564 GB, free: 9.914 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.301e-05/0.3927, allocations: 13.12 kB / 0.5564 GB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004587/0.3932, allocations: 40.12 kB / 0.5564 GB, free: 9.898 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.3933, allocations: 43.53 kB / 0.5565 GB, free: 9.883 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-05/0.3933, allocations: 10.41 kB / 0.5565 GB, free: 9.883 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005876/0.3939, allocations: 488.7 kB / 0.5569 GB, free: 9.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3939, allocations: 0 / 0.5569 GB, free: 9.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001402/0.3953, allocations: 380 kB / 0.5573 GB, free: 9.602 MB / 378.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 (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.0001276/0.3955, allocations: 107.1 kB / 0.5574 GB, free: 9.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003902/0.3994, allocations: 1.877 MB / 0.5592 GB, free: 8.488 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.3994, allocations: 1.125 kB / 0.5592 GB, free: 8.488 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006001/0.4, allocations: 282.8 kB / 0.5595 GB, free: 8.402 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001446/0.4015, allocations: 222.3 kB / 0.5597 GB, free: 8.332 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003528/0.405, allocations: 2.15 MB / 0.5618 GB, free: 6.922 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000547/0.4056, allocations: 0.9924 MB / 0.5628 GB, free: 6.121 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005236/0.4061, allocations: 110 kB / 0.5629 GB, free: 6.066 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002163/0.4063, allocations: 58.91 kB / 0.563 GB, free: 6.051 MB / 378.7 MB Notification: Performance of SimCode: time 9.22e-07/0.4063, allocations: 1.094 kB / 0.563 GB, free: 6.051 MB / 378.7 MB Notification: Performance of Templates: time 0.01968/0.426, allocations: 13.39 MB / 0.576 GB, free: 9.516 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches