Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters.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.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_cpp_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_cpp_ModelicaTest.Blocks.StrictLimiters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008881/0.0008881, allocations: 203.1 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.5 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007631/0.0007631, allocations: 97.11 kB / 295.1 MB, free: 10.06 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1984/0.1984, allocations: 44.84 MB / 392 MB, free: 9.32 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000265/0.0002653, allocations: 8 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1054, allocations: 62.95 MB / 0.5153 GB, free: 2.777 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.StrictLimiters): time 0.1994/0.3048, allocations: 2.945 MB / 0.5182 GB, free: 9.82 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002805/0.3077, allocations: 1.358 MB / 0.5195 GB, free: 9.695 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006864/0.3084, allocations: 22.19 kB / 0.5195 GB, free: 9.688 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003532/0.3088, allocations: 79.83 kB / 0.5196 GB, free: 9.641 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006631/0.3094, allocations: 112.8 kB / 0.5197 GB, free: 9.586 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001371/0.3108, allocations: 476.9 kB / 0.5202 GB, free: 9.57 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008925/0.3117, allocations: 0.7944 MB / 0.521 GB, free: 9.449 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004142/0.3121, allocations: 223.4 kB / 0.5212 GB, free: 9.398 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004038/0.3126, allocations: 275.2 kB / 0.5214 GB, free: 9.324 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002929/0.3129, allocations: 286.5 kB / 0.5217 GB, free: 9.188 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.664e-05/0.3129, allocations: 22.53 kB / 0.5217 GB, free: 9.188 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.379e-05/0.313, allocations: 24.02 kB / 0.5217 GB, free: 9.188 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.3132, allocations: 111.1 kB / 0.5219 GB, free: 9.129 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.015e-05/0.3132, allocations: 131.6 kB / 0.522 GB, free: 9.027 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005982/0.3138, allocations: 0.5653 MB / 0.5225 GB, free: 8.906 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3139, allocations: 0.8906 kB / 0.5225 GB, free: 8.906 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3139, allocations: 0 / 0.5225 GB, free: 8.906 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.3139, allocations: 1.312 kB / 0.5225 GB, free: 8.906 MB / 346.7 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.001929/0.3158, allocations: 1.113 MB / 0.5236 GB, free: 8.215 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.3159, allocations: 9.688 kB / 0.5236 GB, free: 8.215 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005193/0.3164, allocations: 151.1 kB / 0.5238 GB, free: 8.164 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000659/0.3171, allocations: 0.5321 MB / 0.5243 GB, free: 7.793 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.788e-05/0.3171, allocations: 42.16 kB / 0.5243 GB, free: 7.777 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.651e-05/0.3172, allocations: 49.89 kB / 0.5244 GB, free: 7.762 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/0.3186, allocations: 0.7479 MB / 0.5251 GB, free: 7.418 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.3187, allocations: 4.969 kB / 0.5251 GB, free: 7.414 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.213e-05/0.3187, allocations: 22.44 kB / 0.5251 GB, free: 7.398 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.3187, allocations: 12.03 kB / 0.5252 GB, free: 7.398 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/0.3203, allocations: 0.6467 MB / 0.5258 GB, free: 7.238 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003185/0.3235, allocations: 2.34 MB / 0.5281 GB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001838/0.3254, allocations: 0.8187 MB / 0.5289 GB, free: 5.395 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008617/0.3262, allocations: 382.8 kB / 0.5292 GB, free: 5.285 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.745e-05/0.3263, allocations: 9.344 kB / 0.5292 GB, free: 5.285 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.3263, allocations: 42.73 kB / 0.5293 GB, free: 5.238 MB / 346.7 MB Notification: Performance of pre-optimization done (n=48): time 2.675e-06/0.3263, allocations: 0 / 0.5293 GB, free: 5.238 MB / 346.7 MB Notification: Performance of matching and sorting (n=50): time 0.004775/0.3311, allocations: 2.152 MB / 0.5314 GB, free: 4.348 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.116e-05/0.3312, allocations: 190.6 kB / 0.5316 GB, free: 4.125 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007145/0.3319, allocations: 0.5546 MB / 0.5321 GB, free: 3.875 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.698e-05/0.332, allocations: 36.61 kB / 0.5321 GB, free: 3.836 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002958/0.3323, allocations: 352.7 kB / 0.5325 GB, free: 3.559 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.3325, allocations: 184.7 kB / 0.5327 GB, free: 3.414 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.655e-05/0.3325, allocations: 10.75 kB / 0.5327 GB, free: 3.406 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.3326, allocations: 381.8 kB / 0.533 GB, free: 3.062 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001153/0.3338, allocations: 347 kB / 0.5334 GB, free: 2.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.3351, allocations: 464.3 kB / 0.5338 GB, free: 2.77 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/0.3363, allocations: 358.6 kB / 0.5341 GB, free: 2.668 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3363, allocations: 0 / 0.5341 GB, free: 2.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002708/0.339, allocations: 0.8925 MB / 0.535 GB, free: 2.387 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.381e-05/0.3391, allocations: 156.5 kB / 0.5352 GB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.3391, allocations: 3.375 kB / 0.5352 GB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.524e-05/0.3391, allocations: 4.562 kB / 0.5352 GB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.3403, allocations: 222.9 kB / 0.5354 GB, free: 2.191 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.114e-05/0.3404, allocations: 5.281 kB / 0.5354 GB, free: 2.191 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008006/0.3412, allocations: 104.7 kB / 0.5355 GB, free: 2.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.5e-05/0.3413, allocations: 25.56 kB / 0.5355 GB, free: 2.172 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.3413, allocations: 4.438 kB / 0.5355 GB, free: 2.172 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001826/0.3431, allocations: 0.6128 MB / 0.5361 GB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.3431, allocations: 3.5 kB / 0.5361 GB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.3432, allocations: 4.906 kB / 0.5361 GB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009975/0.3442, allocations: 178.1 kB / 0.5363 GB, free: 1.961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.63e-05/0.3442, allocations: 5.906 kB / 0.5363 GB, free: 1.961 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006129/0.3448, allocations: 73.19 kB / 0.5364 GB, free: 1.945 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.983e-05/0.3449, allocations: 19.31 kB / 0.5364 GB, free: 1.941 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004132/0.3453, allocations: 269.9 kB / 0.5366 GB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001688/0.3455, allocations: 75.39 kB / 0.5367 GB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001997/0.3457, allocations: 84.06 kB / 0.5368 GB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.3457, allocations: 6.156 kB / 0.5368 GB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/0.3457, allocations: 1.438 kB / 0.5368 GB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.527e-06/0.3458, allocations: 2.391 kB / 0.5368 GB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00393/0.3497, allocations: 1.556 MB / 0.5383 GB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.3497, allocations: 0 / 0.5383 GB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.3507, allocations: 179 kB / 0.5385 GB, free: 0.8672 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-05/0.3508, allocations: 9.078 kB / 0.5385 GB, free: 0.8633 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.78e-05/0.3508, allocations: 11.17 kB / 0.5385 GB, free: 0.8594 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.195e-06/0.3509, allocations: 8 kB / 0.5385 GB, free: 0.8555 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3509, allocations: 1.156 kB / 0.5385 GB, free: 0.8555 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003871/0.3548, allocations: 1.396 MB / 0.5399 GB, free: 272 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002879/0.3551, allocations: 192.3 kB / 0.5401 GB, free: 84 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001254/0.3552, allocations: 16.17 kB / 0.5401 GB, free: 72 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008034/0.356, allocations: 104 kB / 0.5402 GB, free: 40 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/0.3562, allocations: 45.92 kB / 0.5402 GB, free: 12 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.074e-05/0.3562, allocations: 23.17 kB / 0.5403 GB, free: 0 / 346.7 MB Notification: Performance of sorting global known variables: time 0.000709/0.3569, allocations: 388.2 kB / 0.5406 GB, free: 15.78 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.134e-06/0.357, allocations: 1.219 kB / 0.5406 GB, free: 15.78 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001084/0.358, allocations: 182.1 kB / 0.5408 GB, free: 15.75 MB / 362.7 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 (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.0001693/0.3582, allocations: 107.8 kB / 0.5409 GB, free: 15.65 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002657/0.3609, allocations: 1.099 MB / 0.542 GB, free: 15.22 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3609, allocations: 0 / 0.542 GB, free: 15.22 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009578/0.3619, allocations: 413.1 kB / 0.5424 GB, free: 15.06 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/0.3629, allocations: 188.9 kB / 0.5425 GB, free: 14.97 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003487/0.3664, allocations: 1.81 MB / 0.5443 GB, free: 13.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004825/0.3669, allocations: 0.9149 MB / 0.5452 GB, free: 13.03 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002245/0.3671, allocations: 60.66 kB / 0.5453 GB, free: 13.01 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.3671, allocations: 0 / 0.5453 GB, free: 13.01 MB / 362.7 MB Notification: Performance of Templates: time 0.01358/0.3807, allocations: 8.692 MB / 0.5538 GB, free: 5.125 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.StrictLimiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches