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.001427/0.001427, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001742/0.001742, allocations: 200.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1919/0.1919, allocations: 46.11 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 71.88 kB / 482 MB, free: 4.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2836, allocations: 62.44 MB / 0.5316 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Limiters): time 0.00251/0.2861, allocations: 1.693 MB / 0.5333 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.2872, allocations: 0.6543 MB / 0.5339 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.271e-05/0.2873, allocations: 5.625 kB / 0.5339 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.562e-05/0.2873, allocations: 7.875 kB / 0.534 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.996e-05/0.2874, allocations: 25.58 kB / 0.534 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000423/0.2879, allocations: 149.7 kB / 0.5341 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001893/0.2881, allocations: 150.9 kB / 0.5343 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.2882, allocations: 35.19 kB / 0.5343 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001546/0.2883, allocations: 79.03 kB / 0.5344 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/0.2885, allocations: 69.42 kB / 0.5344 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.095e-05/0.2885, allocations: 13.75 kB / 0.5345 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.129e-05/0.2886, allocations: 19.12 kB / 0.5345 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.968e-05/0.2886, allocations: 29.41 kB / 0.5345 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.424e-05/0.2887, allocations: 60.08 kB / 0.5346 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001723/0.2888, allocations: 146.9 kB / 0.5347 GB, free: 11.19 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2889, allocations: 0 / 0.5347 GB, free: 11.19 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2889, allocations: 0 / 0.5347 GB, free: 11.19 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.421e-06/0.2889, allocations: 1.375 kB / 0.5347 GB, free: 11.19 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.0006464/0.2895, allocations: 454.6 kB / 0.5351 GB, free: 10.76 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.759e-05/0.2896, allocations: 9.625 kB / 0.5351 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001622/0.2897, allocations: 22.5 kB / 0.5352 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002595/0.29, allocations: 227.2 kB / 0.5354 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.29, allocations: 11.05 kB / 0.5354 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.49e-05/0.2901, allocations: 13.88 kB / 0.5354 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004165/0.2905, allocations: 173 kB / 0.5356 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.2905, allocations: 1.375 kB / 0.5356 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.2e-05/0.2905, allocations: 5.375 kB / 0.5356 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.2905, allocations: 1.375 kB / 0.5356 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004001/0.2909, allocations: 131.3 kB / 0.5357 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007952/0.2917, allocations: 448.4 kB / 0.5361 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006068/0.2924, allocations: 193.4 kB / 0.5363 GB, free: 9.805 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002287/0.2926, allocations: 67.64 kB / 0.5364 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.2926, allocations: 10.39 kB / 0.5364 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.2927, allocations: 35.84 kB / 0.5364 GB, free: 9.723 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 2.645e-06/0.2927, allocations: 0 / 0.5364 GB, free: 9.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=9): time 0.001472/0.2941, allocations: 0.5656 MB / 0.537 GB, free: 9.309 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/0.2942, allocations: 108.8 kB / 0.5371 GB, free: 9.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001347/0.2943, allocations: 162.5 kB / 0.5372 GB, free: 9.035 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.2944, allocations: 31.89 kB / 0.5373 GB, free: 9 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.524e-05/0.2944, allocations: 108.8 kB / 0.5374 GB, free: 8.895 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.098e-05/0.2945, allocations: 31.73 kB / 0.5374 GB, free: 8.867 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.241e-05/0.2945, allocations: 26.39 kB / 0.5374 GB, free: 8.844 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.2946, allocations: 322 kB / 0.5377 GB, free: 8.523 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002331/0.2949, allocations: 75.33 kB / 0.5378 GB, free: 8.484 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002421/0.2951, allocations: 102.5 kB / 0.5379 GB, free: 8.418 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004333/0.2956, allocations: 136.2 kB / 0.538 GB, free: 8.355 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.2956, allocations: 0 / 0.538 GB, free: 8.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005025/0.2961, allocations: 190.3 kB / 0.5382 GB, free: 8.254 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.2961, allocations: 4.344 kB / 0.5382 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.2961, allocations: 4.953 kB / 0.5382 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.2961, allocations: 1 kB / 0.5382 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.2963, allocations: 45.47 kB / 0.5383 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.2963, allocations: 384 / 0.5383 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000144/0.2965, allocations: 25.53 kB / 0.5383 GB, free: 8.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.2965, allocations: 7.219 kB / 0.5383 GB, free: 8.215 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001532/0.2967, allocations: 121.2 kB / 0.5384 GB, free: 8.113 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001164/0.2968, allocations: 62.41 kB / 0.5385 GB, free: 8.066 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001906/0.297, allocations: 80.16 kB / 0.5385 GB, free: 8.023 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.31e-07/0.297, allocations: 0 / 0.5385 GB, free: 8.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization_lambda0): time 0.000251/0.2973, allocations: 114.1 kB / 0.5387 GB, free: 7.957 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.953e-06/0.2973, allocations: 5.75 kB / 0.5387 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-06/0.2973, allocations: 0 / 0.5387 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.765e-06/0.2973, allocations: 1.188 kB / 0.5387 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.968e-05/0.2974, allocations: 28.55 kB / 0.5387 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.2974, allocations: 5.219 kB / 0.5387 GB, free: 7.941 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.2975, allocations: 15.39 kB / 0.5387 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.2975, allocations: 6.203 kB / 0.5387 GB, free: 7.93 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 9.586e-05/0.2976, allocations: 187.5 kB / 0.5389 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.462e-05/0.2977, allocations: 14.59 kB / 0.5389 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.392e-05/0.2977, allocations: 12.69 kB / 0.5389 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.2977, allocations: 4.906 kB / 0.5389 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2977, allocations: 0.9375 kB / 0.5389 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.2978, allocations: 0 / 0.5389 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008717/0.2986, allocations: 0.5065 MB / 0.5394 GB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.2986, allocations: 3.938 kB / 0.5394 GB, free: 7.266 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001783/0.2988, allocations: 44.86 kB / 0.5395 GB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.2988, allocations: 1.375 kB / 0.5395 GB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.2989, allocations: 1.812 kB / 0.5395 GB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.2989, allocations: 5.031 kB / 0.5395 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2989, allocations: 3.938 kB / 0.5395 GB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007704/0.2996, allocations: 356.2 kB / 0.5398 GB, free: 7 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.343e-05/0.2997, allocations: 91.91 kB / 0.5399 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.021e-05/0.2998, allocations: 14.56 kB / 0.5399 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002737/0.3, allocations: 34.89 kB / 0.54 GB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.828e-05/0.3001, allocations: 10.98 kB / 0.54 GB, free: 6.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.3001, allocations: 4.188 kB / 0.54 GB, free: 6.863 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.111e-05/0.3002, allocations: 123.5 kB / 0.5401 GB, free: 6.766 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3002, allocations: 4 kB / 0.5401 GB, free: 6.762 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000322/0.3005, allocations: 33.75 kB / 0.5401 GB, free: 6.758 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.0001003/0.3006, allocations: 96.78 kB / 0.5402 GB, free: 6.668 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000606/0.3012, allocations: 198.9 kB / 0.5404 GB, free: 6.586 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3012, allocations: 0 / 0.5404 GB, free: 6.586 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002341/0.3015, allocations: 81.5 kB / 0.5405 GB, free: 6.551 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003679/0.3019, allocations: 39.34 kB / 0.5405 GB, free: 6.535 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006/0.3025, allocations: 311.6 kB / 0.5408 GB, free: 6.289 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002592/0.3027, allocations: 0.7074 MB / 0.5415 GB, free: 5.578 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.356e-05/0.3028, allocations: 20.03 kB / 0.5415 GB, free: 5.57 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3028, allocations: 4 kB / 0.5415 GB, free: 5.566 MB / 398.1 MB Notification: Performance of Templates: time 0.003987/0.3068, allocations: 1.853 MB / 0.5433 GB, free: 4.617 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Limiters/Limiters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches