Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.StrictLimiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.D.x|PID1.I.y|PID2.D.x|PID2.I.y|limIntegrator1.y|limIntegrator2.y|slewRateLimiter1.y|slewRateLimiter2.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters") translateModel(ModelicaTest.Blocks.StrictLimiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.D.x|PID1.I.y|PID2.D.x|PID2.I.y|limIntegrator1.y|limIntegrator2.y|slewRateLimiter1.y|slewRateLimiter2.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001121/0.001121, allocations: 116.2 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001288/0.001288, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.243/0.243, allocations: 46.12 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 76.16 kB / 481.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4104/0.412, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.StrictLimiters): time 0.004704/0.4168, allocations: 3.542 MB / 0.5345 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002945/0.4197, allocations: 1.48 MB / 0.5359 GB, free: 9.586 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005472/0.4203, allocations: 29 kB / 0.5359 GB, free: 9.574 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003679/0.4207, allocations: 112.2 kB / 0.536 GB, free: 9.469 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006428/0.4214, allocations: 152.7 kB / 0.5362 GB, free: 9.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001636/0.423, allocations: 0.6303 MB / 0.5368 GB, free: 8.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001291/0.4243, allocations: 0.9329 MB / 0.5377 GB, free: 8.258 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005622/0.4249, allocations: 309.1 kB / 0.538 GB, free: 8.062 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005912/0.4255, allocations: 363.5 kB / 0.5383 GB, free: 7.828 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003885/0.4259, allocations: 361 kB / 0.5387 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001185/0.426, allocations: 72.66 kB / 0.5388 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.4262, allocations: 79.09 kB / 0.5388 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001669/0.4264, allocations: 181.5 kB / 0.539 GB, free: 7.391 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00032/0.4267, allocations: 369 kB / 0.5394 GB, free: 7.094 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001048/0.4278, allocations: 0.8452 MB / 0.5402 GB, free: 6.434 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.4278, allocations: 0 / 0.5402 GB, free: 6.434 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4278, allocations: 1.594 kB / 0.5402 GB, free: 6.434 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.491e-05/0.4278, allocations: 0 / 0.5402 GB, free: 6.434 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.002423/0.4302, allocations: 1.229 MB / 0.5414 GB, free: 5.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.4303, allocations: 9.344 kB / 0.5414 GB, free: 5.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006213/0.4309, allocations: 146.1 kB / 0.5415 GB, free: 5.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/0.4319, allocations: 0.6042 MB / 0.5421 GB, free: 4.902 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.764e-05/0.432, allocations: 38.44 kB / 0.5422 GB, free: 4.887 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.4321, allocations: 70.11 kB / 0.5422 GB, free: 4.852 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/0.4337, allocations: 0.7139 MB / 0.5429 GB, free: 4.367 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/0.4337, allocations: 1.031 kB / 0.5429 GB, free: 4.367 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.659e-05/0.4338, allocations: 26.84 kB / 0.543 GB, free: 4.348 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.4338, allocations: 11.78 kB / 0.543 GB, free: 4.348 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/0.4353, allocations: 0.5581 MB / 0.5435 GB, free: 4.094 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003617/0.439, allocations: 2.274 MB / 0.5457 GB, free: 2.203 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001795/0.4408, allocations: 0.7288 MB / 0.5464 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008076/0.4416, allocations: 322.2 kB / 0.5467 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.453e-05/0.4417, allocations: 8.375 kB / 0.5468 GB, free: 1.301 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.606e-05/0.4417, allocations: 38.94 kB / 0.5468 GB, free: 1.254 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.394e-06/0.4417, allocations: 4 kB / 0.5468 GB, free: 1.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=50): time 0.005192/0.4469, allocations: 1.948 MB / 0.5487 GB, free: 15.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.4471, allocations: 239.8 kB / 0.5489 GB, free: 14.96 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006825/0.4477, allocations: 0.5786 MB / 0.5495 GB, free: 14.37 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.689e-05/0.4478, allocations: 37.7 kB / 0.5495 GB, free: 14.33 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000265/0.4481, allocations: 369.1 kB / 0.5499 GB, free: 13.96 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.4482, allocations: 182.4 kB / 0.5501 GB, free: 13.79 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001806/0.4484, allocations: 106.2 kB / 0.5502 GB, free: 13.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.4485, allocations: 326 kB / 0.5505 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008221/0.4493, allocations: 306.9 kB / 0.5508 GB, free: 13.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009998/0.4504, allocations: 431.6 kB / 0.5512 GB, free: 12.58 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001613/0.452, allocations: 0.6551 MB / 0.5518 GB, free: 11.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.452, allocations: 0 / 0.5518 GB, free: 11.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001906/0.4539, allocations: 0.803 MB / 0.5526 GB, free: 11.08 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.4539, allocations: 4 kB / 0.5526 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.4539, allocations: 4 kB / 0.5526 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/0.454, allocations: 7.938 kB / 0.5526 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008399/0.4548, allocations: 191.7 kB / 0.5528 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.55e-05/0.4548, allocations: 11.97 kB / 0.5528 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005484/0.4554, allocations: 79.97 kB / 0.5529 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.368e-05/0.4555, allocations: 20 kB / 0.5529 GB, free: 10.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007702/0.4562, allocations: 369.1 kB / 0.5533 GB, free: 10.4 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006634/0.4569, allocations: 361.4 kB / 0.5536 GB, free: 9.996 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001141/0.4581, allocations: 0.5358 MB / 0.5541 GB, free: 9.422 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.547e-06/0.4581, allocations: 8 kB / 0.5541 GB, free: 9.414 MB / 414.1 MB Notification: Performance of matching and sorting (n=66) (initialization_lambda0): time 0.001377/0.4595, allocations: 0.6554 MB / 0.5548 GB, free: 8.75 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.4595, allocations: 8 kB / 0.5548 GB, free: 8.742 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.4595, allocations: 4.312 kB / 0.5548 GB, free: 8.738 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.893e-06/0.4595, allocations: 8 kB / 0.5548 GB, free: 8.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006406/0.4602, allocations: 163.8 kB / 0.5549 GB, free: 8.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.4602, allocations: 7.938 kB / 0.555 GB, free: 8.562 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004514/0.4606, allocations: 71.88 kB / 0.555 GB, free: 8.492 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.548e-05/0.4607, allocations: 20 kB / 0.555 GB, free: 8.473 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 4 (PID2.I.local_reset,PID1.I.local_reset,limIntegrator2.local_reset,limIntegrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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 prepare postOptimizeDAE: time 0.0001973/0.4609, allocations: 212.1 kB / 0.5552 GB, free: 8.258 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.461, allocations: 79.48 kB / 0.5553 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001995/0.4612, allocations: 87.42 kB / 0.5554 GB, free: 8.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.4612, allocations: 11.94 kB / 0.5554 GB, free: 8.078 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.218e-06/0.4613, allocations: 0 / 0.5554 GB, free: 8.078 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.4613, allocations: 7.984 kB / 0.5554 GB, free: 8.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002799/0.4641, allocations: 1.453 MB / 0.5568 GB, free: 6.555 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.4641, allocations: 0 / 0.5568 GB, free: 6.555 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007208/0.4648, allocations: 151.9 kB / 0.557 GB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.855e-06/0.4648, allocations: 4 kB / 0.557 GB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.122e-05/0.4649, allocations: 15.98 kB / 0.557 GB, free: 6.387 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.4649, allocations: 0 / 0.557 GB, free: 6.387 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.4649, allocations: 7.938 kB / 0.557 GB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002755/0.4677, allocations: 1.257 MB / 0.5582 GB, free: 5.094 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002274/0.4679, allocations: 192.5 kB / 0.5584 GB, free: 4.887 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.342e-05/0.468, allocations: 12 kB / 0.5584 GB, free: 4.875 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005481/0.4686, allocations: 79.91 kB / 0.5585 GB, free: 4.797 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.4687, allocations: 43.88 kB / 0.5586 GB, free: 4.754 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.761e-05/0.4687, allocations: 19.98 kB / 0.5586 GB, free: 4.734 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004626/0.4692, allocations: 410.9 kB / 0.559 GB, free: 4.336 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4692, allocations: 0 / 0.559 GB, free: 4.336 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006754/0.4699, allocations: 180 kB / 0.5591 GB, free: 4.16 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (der1.u,der2.u,limIntegrator1.y,limIntegrator2.y,PID1.I.y,PID1.D.x,PID2.I.y,PID2.D.x) * 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 (50): * Single equations (assignments): 50 * 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.0001666/0.4701, allocations: 111.2 kB / 0.5592 GB, free: 4.043 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002493/0.4726, allocations: 0.9813 MB / 0.5602 GB, free: 3.066 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.4726, allocations: 4 kB / 0.5602 GB, free: 3.062 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000862/0.4735, allocations: 352.2 kB / 0.5605 GB, free: 2.719 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.4745, allocations: 201.3 kB / 0.5607 GB, free: 2.535 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002323/0.4768, allocations: 1.351 MB / 0.562 GB, free: 1.141 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004889/0.4774, allocations: 0.9296 MB / 0.563 GB, free: 188 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004108/0.4778, allocations: 101 kB / 0.5631 GB, free: 84 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000192/0.478, allocations: 51.42 kB / 0.5631 GB, free: 32 kB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.478, allocations: 0 / 0.5631 GB, free: 32 kB / 414.1 MB Notification: Performance of Templates: time 0.01658/0.4946, allocations: 8.736 MB / 0.5716 GB, free: 7.352 MB / 430.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/StrictLimiters/StrictLimiters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.StrictLimiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches