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.001297/0.001297, allocations: 200.3 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.271/1.271, allocations: 226.5 MB / 243.4 MB, free: 6.52 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007581/0.0007581, allocations: 96.81 kB / 295.5 MB, free: 6.695 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3165/0.3165, allocations: 44.83 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003011/0.0003011, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3227, allocations: 62.95 MB / 0.5159 GB, free: 37.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.StrictLimiters): time 0.002612/0.3254, allocations: 2.964 MB / 0.5188 GB, free: 35.04 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001956/0.3273, allocations: 1.356 MB / 0.5201 GB, free: 34.09 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003353/0.3277, allocations: 26.06 kB / 0.5201 GB, free: 34.07 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002046/0.3279, allocations: 73.31 kB / 0.5202 GB, free: 34.02 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003907/0.3283, allocations: 124.2 kB / 0.5203 GB, free: 33.94 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008652/0.3292, allocations: 476.7 kB / 0.5208 GB, free: 33.7 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005986/0.3298, allocations: 0.8087 MB / 0.5215 GB, free: 33.3 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000344/0.3301, allocations: 285 kB / 0.5218 GB, free: 33.14 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003411/0.3305, allocations: 282.2 kB / 0.5221 GB, free: 33.02 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002387/0.3307, allocations: 273.4 kB / 0.5223 GB, free: 32.88 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.294e-05/0.3308, allocations: 22.78 kB / 0.5224 GB, free: 32.88 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.154e-05/0.3309, allocations: 33.97 kB / 0.5224 GB, free: 32.87 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.424e-05/0.331, allocations: 109.2 kB / 0.5225 GB, free: 32.81 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.3312, allocations: 305.2 kB / 0.5228 GB, free: 32.59 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003526/0.3315, allocations: 0.5611 MB / 0.5233 GB, free: 32.44 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3315, allocations: 0 / 0.5233 GB, free: 32.44 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3315, allocations: 0 / 0.5233 GB, free: 32.44 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.3316, allocations: 2.875 kB / 0.5233 GB, free: 32.44 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001629/0.3332, allocations: 1.106 MB / 0.5244 GB, free: 31.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.3332, allocations: 8.938 kB / 0.5244 GB, free: 31.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004825/0.3337, allocations: 150 kB / 0.5246 GB, free: 31.69 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006213/0.3343, allocations: 0.5513 MB / 0.5251 GB, free: 31.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.856e-05/0.3344, allocations: 36.88 kB / 0.5251 GB, free: 31.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.406e-05/0.3345, allocations: 52.97 kB / 0.5252 GB, free: 31.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.3357, allocations: 0.7587 MB / 0.5259 GB, free: 30.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.3357, allocations: 0 / 0.5259 GB, free: 30.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.073e-05/0.3358, allocations: 26.97 kB / 0.526 GB, free: 30.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.3358, allocations: 10.59 kB / 0.526 GB, free: 30.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001277/0.3371, allocations: 0.6382 MB / 0.5266 GB, free: 30.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002738/0.3398, allocations: 2.341 MB / 0.5289 GB, free: 29.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00153/0.3414, allocations: 0.8185 MB / 0.5297 GB, free: 28.87 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007326/0.3421, allocations: 378.4 kB / 0.53 GB, free: 28.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.857e-05/0.3422, allocations: 13.38 kB / 0.5301 GB, free: 28.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.983e-05/0.3422, allocations: 37.66 kB / 0.5301 GB, free: 28.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 2.535e-06/0.3422, allocations: 2.594 kB / 0.5301 GB, free: 28.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=50): time 0.004078/0.3463, allocations: 2.158 MB / 0.5322 GB, free: 27.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.079e-05/0.3464, allocations: 188.5 kB / 0.5324 GB, free: 27.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005417/0.347, allocations: 0.5591 MB / 0.5329 GB, free: 27.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.92e-05/0.347, allocations: 38.11 kB / 0.533 GB, free: 27.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001791/0.3472, allocations: 350.5 kB / 0.5333 GB, free: 27.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.665e-05/0.3473, allocations: 179.4 kB / 0.5335 GB, free: 26.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.075e-05/0.3474, allocations: 10.62 kB / 0.5335 GB, free: 26.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.087e-05/0.3475, allocations: 388.1 kB / 0.5339 GB, free: 26.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000714/0.3482, allocations: 340.3 kB / 0.5342 GB, free: 26.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007735/0.349, allocations: 476.2 kB / 0.5346 GB, free: 26.22 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.3504, allocations: 0.7433 MB / 0.5354 GB, free: 25.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3504, allocations: 0 / 0.5354 GB, free: 25.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001876/0.3523, allocations: 0.885 MB / 0.5362 GB, free: 25.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.846e-05/0.3524, allocations: 158.9 kB / 0.5364 GB, free: 25.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.3524, allocations: 6.625 kB / 0.5364 GB, free: 25.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.3524, allocations: 5.25 kB / 0.5364 GB, free: 25.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008087/0.3533, allocations: 219.9 kB / 0.5366 GB, free: 25.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.3533, allocations: 13.23 kB / 0.5366 GB, free: 25.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005426/0.3538, allocations: 108.1 kB / 0.5367 GB, free: 25.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.026e-05/0.3539, allocations: 21.22 kB / 0.5367 GB, free: 25.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.492e-06/0.3539, allocations: 5.281 kB / 0.5367 GB, free: 25.45 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001226/0.3551, allocations: 0.6162 MB / 0.5373 GB, free: 25.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3551, allocations: 3.062 kB / 0.5373 GB, free: 25.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.071e-06/0.3552, allocations: 4.594 kB / 0.5373 GB, free: 25.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006358/0.3558, allocations: 177 kB / 0.5375 GB, free: 25.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.824e-06/0.3558, allocations: 4.094 kB / 0.5375 GB, free: 25.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000406/0.3562, allocations: 79.94 kB / 0.5376 GB, free: 25.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.533e-05/0.3563, allocations: 18.31 kB / 0.5376 GB, free: 25.21 MB / 378.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.0002747/0.3565, allocations: 265.2 kB / 0.5379 GB, free: 24.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.3567, allocations: 73.08 kB / 0.5379 GB, free: 24.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000151/0.3568, allocations: 81.73 kB / 0.538 GB, free: 24.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/0.3568, allocations: 5.594 kB / 0.538 GB, free: 24.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.3569, allocations: 3.938 kB / 0.538 GB, free: 24.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.3569, allocations: 5.375 kB / 0.538 GB, free: 24.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002703/0.3596, allocations: 1.549 MB / 0.5395 GB, free: 24.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.3596, allocations: 1.438 kB / 0.5395 GB, free: 24.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007118/0.3603, allocations: 174.6 kB / 0.5397 GB, free: 24.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.633e-06/0.3603, allocations: 10.66 kB / 0.5397 GB, free: 24.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.393e-05/0.3604, allocations: 12.41 kB / 0.5397 GB, free: 24.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.3604, allocations: 6.375 kB / 0.5397 GB, free: 24.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.3604, allocations: 2.406 kB / 0.5397 GB, free: 24.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002693/0.3631, allocations: 1.402 MB / 0.5411 GB, free: 23.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002403/0.3634, allocations: 186.2 kB / 0.5413 GB, free: 23.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.85e-05/0.3634, allocations: 16.16 kB / 0.5413 GB, free: 23.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005399/0.364, allocations: 110.9 kB / 0.5414 GB, free: 23.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.3641, allocations: 43.89 kB / 0.5414 GB, free: 23.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-05/0.3642, allocations: 18.5 kB / 0.5415 GB, free: 23.36 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004514/0.3646, allocations: 392.1 kB / 0.5418 GB, free: 23.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3646, allocations: 0 / 0.5418 GB, free: 23.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000667/0.3653, allocations: 178.8 kB / 0.542 GB, free: 23.16 MB / 378.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.0001285/0.3654, allocations: 111.8 kB / 0.5421 GB, free: 23.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002446/0.3679, allocations: 1.095 MB / 0.5432 GB, free: 22.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3679, allocations: 0 / 0.5432 GB, free: 22.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008832/0.3688, allocations: 413.8 kB / 0.5436 GB, free: 22.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00111/0.3699, allocations: 186.6 kB / 0.5438 GB, free: 22.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003312/0.3732, allocations: 1.807 MB / 0.5455 GB, free: 21.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004159/0.3737, allocations: 0.9243 MB / 0.5464 GB, free: 20.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002467/0.3739, allocations: 60.78 kB / 0.5465 GB, free: 20.95 MB / 378.7 MB Notification: Performance of SimCode: time 1.342e-06/0.3739, allocations: 0 / 0.5465 GB, free: 20.95 MB / 378.7 MB Notification: Performance of Templates: time 0.01396/0.3879, allocations: 8.677 MB / 0.555 GB, free: 16.78 MB / 378.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