Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters.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.Limiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|slewRateLimiter.y|limiter.y|variableLimiter.y|deadZone.y|sine.y|constPos.y|constNeg.y|slewRateLimiter.y|idealDerivative.y",fileNamePrefix="ModelicaTest_trunk_cpp_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|slewRateLimiter.y|idealDerivative.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009607/0.0009608, allocations: 191.1 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.268/1.268, allocations: 226.5 MB / 244.1 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007982/0.0007981, allocations: 96.25 kB / 296.1 MB, free: 6.684 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3183/0.3183, allocations: 44.83 MB / 393 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002678/0.0002679, allocations: 8 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.364, allocations: 62.96 MB / 0.5165 GB, free: 37.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1253/0.4893, allocations: 89.52 MB / 0.6039 GB, free: 15.88 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.4896, allocations: 59.98 kB / 0.6039 GB, free: 15.82 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01445/0.5041, allocations: 4.704 MB / 0.6085 GB, free: 11.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.536e-06/0.5041, allocations: 0 / 0.6085 GB, free: 11.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.776e-05/0.5041, allocations: 15.94 kB / 0.6086 GB, free: 11.1 MB / 426.7 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.0005916/0.5047, allocations: 451 kB / 0.609 GB, free: 10.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/0.5048, allocations: 12.03 kB / 0.609 GB, free: 10.6 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001888/0.505, allocations: 28.83 kB / 0.609 GB, free: 10.57 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000309/0.5053, allocations: 223.5 kB / 0.6092 GB, free: 10.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.5053, allocations: 12.28 kB / 0.6092 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.777e-05/0.5054, allocations: 8.375 kB / 0.6093 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004458/0.5058, allocations: 199.2 kB / 0.6094 GB, free: 10.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.5059, allocations: 0 / 0.6094 GB, free: 10.09 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.338e-05/0.5059, allocations: 8 kB / 0.6095 GB, free: 10.08 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.5059, allocations: 0 / 0.6095 GB, free: 10.08 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000379/0.5063, allocations: 159.9 kB / 0.6096 GB, free: 9.926 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000828/0.5071, allocations: 468.4 kB / 0.61 GB, free: 9.418 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008349/0.508, allocations: 314.4 kB / 0.6103 GB, free: 9.102 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/0.5082, allocations: 84.84 kB / 0.6104 GB, free: 9.016 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.882e-05/0.5082, allocations: 11.98 kB / 0.6104 GB, free: 9.004 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.537e-05/0.5083, allocations: 34.56 kB / 0.6105 GB, free: 8.961 MB / 426.7 MB Notification: Performance of pre-optimization done (n=7): time 1.894e-06/0.5083, allocations: 0 / 0.6105 GB, free: 8.961 MB / 426.7 MB Notification: Performance of matching and sorting (n=7): time 0.0007595/0.5091, allocations: 285.4 kB / 0.6107 GB, free: 8.676 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.165e-05/0.5091, allocations: 110.8 kB / 0.6109 GB, free: 8.543 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.5093, allocations: 157 kB / 0.611 GB, free: 8.383 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.5093, allocations: 29.7 kB / 0.611 GB, free: 8.348 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.294e-05/0.5094, allocations: 108.1 kB / 0.6111 GB, free: 8.238 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.808e-05/0.5094, allocations: 23.56 kB / 0.6112 GB, free: 8.215 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.646e-06/0.5094, allocations: 4 kB / 0.6112 GB, free: 8.211 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.5096, allocations: 322.8 kB / 0.6115 GB, free: 7.887 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.5098, allocations: 87.86 kB / 0.6116 GB, free: 7.801 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.51, allocations: 110.5 kB / 0.6117 GB, free: 7.684 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003817/0.5104, allocations: 164.8 kB / 0.6118 GB, free: 7.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.5104, allocations: 0 / 0.6118 GB, free: 7.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004595/0.5109, allocations: 209.4 kB / 0.612 GB, free: 7.309 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.309e-05/0.511, allocations: 100.9 kB / 0.6121 GB, free: 7.203 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.259e-06/0.511, allocations: 0 / 0.6121 GB, free: 7.203 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.511, allocations: 0 / 0.6121 GB, free: 7.203 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001525/0.5111, allocations: 43.97 kB / 0.6122 GB, free: 7.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.5112, allocations: 0 / 0.6122 GB, free: 7.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000135/0.5113, allocations: 43.81 kB / 0.6122 GB, free: 7.117 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.5113, allocations: 3.984 kB / 0.6122 GB, free: 7.113 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.394e-06/0.5113, allocations: 4 kB / 0.6122 GB, free: 7.109 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002003/0.5115, allocations: 88.5 kB / 0.6123 GB, free: 7.023 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-06/0.5116, allocations: 4 kB / 0.6123 GB, free: 7.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-06/0.5116, allocations: 0 / 0.6123 GB, free: 7.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.328e-05/0.5117, allocations: 27.98 kB / 0.6123 GB, free: 6.992 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.433e-06/0.5117, allocations: 0 / 0.6123 GB, free: 6.992 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.119e-05/0.5117, allocations: 19.92 kB / 0.6123 GB, free: 6.973 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.5118, allocations: 4 kB / 0.6123 GB, free: 6.969 MB / 426.7 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 (8): * Single equations (assignments): 8 * 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.0001232/0.5119, allocations: 193.1 kB / 0.6125 GB, free: 6.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.178e-05/0.5119, allocations: 11.91 kB / 0.6125 GB, free: 6.758 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.667e-05/0.512, allocations: 16.72 kB / 0.6126 GB, free: 6.734 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.512, allocations: 0 / 0.6126 GB, free: 6.734 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.512, allocations: 7.922 kB / 0.6126 GB, free: 6.727 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.512, allocations: 0 / 0.6126 GB, free: 6.727 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002416/0.5123, allocations: 225.4 kB / 0.6128 GB, free: 6.457 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.5123, allocations: 0 / 0.6128 GB, free: 6.457 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001622/0.5124, allocations: 47.91 kB / 0.6128 GB, free: 6.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.5125, allocations: 0 / 0.6128 GB, free: 6.41 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.5125, allocations: 4 kB / 0.6128 GB, free: 6.406 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.5125, allocations: 0 / 0.6128 GB, free: 6.406 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.175e-06/0.5125, allocations: 3.938 kB / 0.6128 GB, free: 6.402 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007058/0.5132, allocations: 399.2 kB / 0.6132 GB, free: 5.996 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.692e-05/0.5133, allocations: 85.05 kB / 0.6133 GB, free: 5.895 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.521e-05/0.5133, allocations: 0 / 0.6133 GB, free: 5.895 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002741/0.5136, allocations: 52.02 kB / 0.6133 GB, free: 5.844 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.751e-05/0.5136, allocations: 15.92 kB / 0.6134 GB, free: 5.828 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.207e-05/0.5136, allocations: 0 / 0.6134 GB, free: 5.828 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.948e-05/0.5137, allocations: 121.2 kB / 0.6135 GB, free: 5.711 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5137, allocations: 4 kB / 0.6135 GB, free: 5.707 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003067/0.5141, allocations: 43.84 kB / 0.6135 GB, free: 5.664 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (slewRateLimiter.y) * 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 (7): * Single equations (assignments): 7 * 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.0001337/0.5142, allocations: 111 kB / 0.6136 GB, free: 5.547 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005465/0.5147, allocations: 211.9 kB / 0.6138 GB, free: 5.34 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.5148, allocations: 0 / 0.6138 GB, free: 5.34 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002146/0.515, allocations: 95.86 kB / 0.6139 GB, free: 5.246 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003699/0.5154, allocations: 27.98 kB / 0.6139 GB, free: 5.219 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006138/0.516, allocations: 337.7 kB / 0.6143 GB, free: 4.848 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.5162, allocations: 0.7009 MB / 0.6149 GB, free: 4.121 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.222e-05/0.5163, allocations: 19.44 kB / 0.615 GB, free: 4.105 MB / 426.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5163, allocations: 0 / 0.615 GB, free: 4.105 MB / 426.7 MB Notification: Performance of Templates: time 0.003386/0.5197, allocations: 1.765 MB / 0.6167 GB, free: 2.355 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches