Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.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.Limiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|slewRateLimiter.y|limiter.y|variableLimiter.y|deadZone.y|sine.y|constPos.y|constNeg.y|idealDerivative.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Limiters") translateModel(ModelicaTest.Blocks.Limiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|slewRateLimiter.y|limiter.y|variableLimiter.y|deadZone.y|sine.y|constPos.y|constNeg.y|idealDerivative.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Limiters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001437/0.001437, allocations: 118.2 kB / 17.79 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.001669/0.001669, allocations: 201.2 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.538/1.538, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2662/0.2662, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 75.88 kB / 481.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5423/0.5436, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Limiters): time 0.00326/0.5469, allocations: 1.703 MB / 0.5326 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.5483, allocations: 0.6543 MB / 0.5333 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.89e-05/0.5484, allocations: 5.312 kB / 0.5333 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.423e-05/0.5484, allocations: 11.88 kB / 0.5333 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.5485, allocations: 22.55 kB / 0.5333 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005129/0.5491, allocations: 144.7 kB / 0.5335 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000217/0.5493, allocations: 156.2 kB / 0.5336 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.5495, allocations: 37.25 kB / 0.5336 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001815/0.5496, allocations: 79.25 kB / 0.5337 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001306/0.5498, allocations: 66.8 kB / 0.5338 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.689e-05/0.5498, allocations: 12.38 kB / 0.5338 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.161e-05/0.5499, allocations: 16.5 kB / 0.5338 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.91e-05/0.5499, allocations: 32.03 kB / 0.5338 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.59e-05/0.55, allocations: 60.08 kB / 0.5339 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002286/0.5502, allocations: 143.5 kB / 0.534 GB, free: 11.22 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.5503, allocations: 0 / 0.534 GB, free: 11.22 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.5503, allocations: 1.375 kB / 0.534 GB, free: 11.22 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.5503, allocations: 4 kB / 0.534 GB, free: 11.22 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006755/0.551, allocations: 461.2 kB / 0.5345 GB, free: 10.78 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.551, allocations: 13.2 kB / 0.5345 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.5512, allocations: 22.03 kB / 0.5345 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003721/0.5516, allocations: 227 kB / 0.5347 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.5516, allocations: 8.125 kB / 0.5347 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.288e-05/0.5516, allocations: 17.77 kB / 0.5348 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004394/0.5521, allocations: 169.2 kB / 0.5349 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.5521, allocations: 0 / 0.5349 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.205e-05/0.5521, allocations: 9.312 kB / 0.5349 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.5522, allocations: 2.156 kB / 0.5349 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004046/0.5526, allocations: 122.5 kB / 0.535 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008816/0.5535, allocations: 460.8 kB / 0.5355 GB, free: 9.918 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005917/0.5541, allocations: 189.3 kB / 0.5357 GB, free: 9.824 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002203/0.5543, allocations: 71.7 kB / 0.5357 GB, free: 9.789 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.931e-05/0.5543, allocations: 9.516 kB / 0.5357 GB, free: 9.781 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001195/0.5545, allocations: 37.34 kB / 0.5358 GB, free: 9.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.5545, allocations: 0 / 0.5358 GB, free: 9.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=9): time 0.001576/0.556, allocations: 0.5651 MB / 0.5363 GB, free: 9.324 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.427e-05/0.5561, allocations: 113.1 kB / 0.5364 GB, free: 9.191 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/0.5563, allocations: 158.6 kB / 0.5366 GB, free: 9.051 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.5563, allocations: 26.67 kB / 0.5366 GB, free: 9.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.851e-05/0.5564, allocations: 109.5 kB / 0.5367 GB, free: 8.914 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.87e-05/0.5565, allocations: 35.88 kB / 0.5368 GB, free: 8.883 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.573e-05/0.5566, allocations: 30.27 kB / 0.5368 GB, free: 8.855 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.5567, allocations: 326.1 kB / 0.5371 GB, free: 8.531 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002389/0.557, allocations: 70.7 kB / 0.5372 GB, free: 8.496 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002602/0.5572, allocations: 102.7 kB / 0.5373 GB, free: 8.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004348/0.5577, allocations: 132.9 kB / 0.5374 GB, free: 8.371 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.5577, allocations: 0 / 0.5374 GB, free: 8.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005366/0.5582, allocations: 185.2 kB / 0.5376 GB, free: 8.273 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.5583, allocations: 5.5 kB / 0.5376 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.5583, allocations: 0 / 0.5376 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.5583, allocations: 5.016 kB / 0.5376 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/0.5585, allocations: 37.72 kB / 0.5376 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.5586, allocations: 7.938 kB / 0.5376 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00014/0.5587, allocations: 26.75 kB / 0.5376 GB, free: 8.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.344e-05/0.5587, allocations: 2.188 kB / 0.5376 GB, free: 8.238 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001734/0.5589, allocations: 125.2 kB / 0.5378 GB, free: 8.133 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001361/0.5591, allocations: 59.03 kB / 0.5378 GB, free: 8.09 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002196/0.5593, allocations: 80.09 kB / 0.5379 GB, free: 8.047 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.022e-06/0.5593, allocations: 0 / 0.5379 GB, free: 8.047 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization_lambda0): time 0.0003473/0.5597, allocations: 119.8 kB / 0.538 GB, free: 7.977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.015e-05/0.5597, allocations: 4.938 kB / 0.538 GB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.5597, allocations: 4 kB / 0.538 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.896e-06/0.5597, allocations: 1.125 kB / 0.538 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.495e-05/0.5598, allocations: 25.77 kB / 0.538 GB, free: 7.965 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.5598, allocations: 11.86 kB / 0.5381 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.27e-05/0.5599, allocations: 15.02 kB / 0.5381 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.693e-06/0.5599, allocations: 2.688 kB / 0.5381 GB, free: 7.945 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001632/0.5601, allocations: 191.9 kB / 0.5383 GB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.887e-05/0.5602, allocations: 18.42 kB / 0.5383 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.574e-05/0.5602, allocations: 12.72 kB / 0.5383 GB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.5602, allocations: 8.969 kB / 0.5383 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.5602, allocations: 0 / 0.5383 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.5603, allocations: 1.031 kB / 0.5383 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.5613, allocations: 0.5047 MB / 0.5388 GB, free: 7.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.5613, allocations: 5.25 kB / 0.5388 GB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.5615, allocations: 32.5 kB / 0.5388 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/0.5615, allocations: 5.453 kB / 0.5388 GB, free: 7.258 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.5615, allocations: 5.312 kB / 0.5388 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.5615, allocations: 5.594 kB / 0.5388 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.5615, allocations: 0 / 0.5388 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008564/0.5624, allocations: 364.1 kB / 0.5392 GB, free: 7.004 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001574/0.5626, allocations: 91.92 kB / 0.5393 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.036e-05/0.5626, allocations: 6 kB / 0.5393 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002646/0.5629, allocations: 34.77 kB / 0.5393 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.189e-05/0.5629, allocations: 8.547 kB / 0.5393 GB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.563, allocations: 10.5 kB / 0.5393 GB, free: 6.871 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001105/0.5631, allocations: 120.1 kB / 0.5394 GB, free: 6.777 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5631, allocations: 3.938 kB / 0.5394 GB, free: 6.773 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003196/0.5634, allocations: 33.34 kB / 0.5395 GB, free: 6.77 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealDerivative.u) * 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 (9): * Single equations (assignments): 9 * 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.0001516/0.5636, allocations: 92.97 kB / 0.5396 GB, free: 6.684 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006556/0.5642, allocations: 193.9 kB / 0.5398 GB, free: 6.605 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5643, allocations: 4.969 kB / 0.5398 GB, free: 6.602 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000238/0.5645, allocations: 82.28 kB / 0.5398 GB, free: 6.566 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003847/0.5649, allocations: 44.22 kB / 0.5399 GB, free: 6.547 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007057/0.5656, allocations: 281.7 kB / 0.5401 GB, free: 6.336 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003965/0.566, allocations: 0.7107 MB / 0.5408 GB, free: 5.621 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.754e-05/0.5661, allocations: 21.92 kB / 0.5409 GB, free: 5.609 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.699e-05/0.5662, allocations: 14.78 kB / 0.5409 GB, free: 5.605 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.5662, allocations: 0 / 0.5409 GB, free: 5.605 MB / 398.1 MB Notification: Performance of Templates: time 0.006403/0.5726, allocations: 2.275 MB / 0.5431 GB, free: 4.469 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Limiters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Limiters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Limiters/Limiters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches