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.001032/0.001032, allocations: 201 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.263/1.263, allocations: 226.5 MB / 243.1 MB, free: 14.32 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007722/0.0007722, allocations: 100.7 kB / 295.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1895/0.1895, allocations: 44.84 MB / 392 MB, free: 9.355 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002253/0.0002253, allocations: 11.98 kB / 464.7 MB, free: 49.81 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09414/0.09438, allocations: 62.96 MB / 0.5153 GB, free: 2.812 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Limiters): time 0.001726/0.09615, allocations: 1.37 MB / 0.5167 GB, free: 1.422 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008949/0.09706, allocations: 0.585 MB / 0.5172 GB, free: 0.832 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.822e-05/0.09714, allocations: 8 kB / 0.5172 GB, free: 0.8242 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.919e-05/0.09717, allocations: 11.86 kB / 0.5172 GB, free: 0.8125 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.995e-05/0.09727, allocations: 11.86 kB / 0.5173 GB, free: 0.8008 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003603/0.09763, allocations: 118.4 kB / 0.5174 GB, free: 0.6875 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001586/0.0978, allocations: 135.6 kB / 0.5175 GB, free: 0.5547 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.09791, allocations: 29.42 kB / 0.5175 GB, free: 0.5234 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001432/0.09806, allocations: 63.77 kB / 0.5176 GB, free: 472 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.747e-05/0.09816, allocations: 51.75 kB / 0.5176 GB, free: 420 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.384e-05/0.09819, allocations: 8 kB / 0.5176 GB, free: 412 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.777e-05/0.09825, allocations: 8 kB / 0.5177 GB, free: 404 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.421e-05/0.09828, allocations: 31.83 kB / 0.5177 GB, free: 372 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.356e-05/0.09832, allocations: 41.64 kB / 0.5177 GB, free: 324 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001203/0.09844, allocations: 88.09 kB / 0.5178 GB, free: 236 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.09845, allocations: 0 / 0.5178 GB, free: 236 kB / 346.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.09846, allocations: 0 / 0.5178 GB, free: 236 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.09847, allocations: 7.938 kB / 0.5178 GB, free: 228 kB / 346.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.1851/0.2836, allocations: 438.5 kB / 0.5182 GB, free: 11.82 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.2836, allocations: 11.59 kB / 0.5182 GB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002296/0.2839, allocations: 25.5 kB / 0.5183 GB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002602/0.2842, allocations: 213.4 kB / 0.5185 GB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.396e-05/0.2842, allocations: 9.469 kB / 0.5185 GB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.403e-05/0.2842, allocations: 9.391 kB / 0.5185 GB, free: 11.6 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004886/0.2847, allocations: 186.8 kB / 0.5187 GB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.2847, allocations: 0.5625 kB / 0.5187 GB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.2848, allocations: 4.344 kB / 0.5187 GB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.2848, allocations: 2.188 kB / 0.5187 GB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004729/0.2853, allocations: 159.1 kB / 0.5188 GB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008446/0.2861, allocations: 477.1 kB / 0.5193 GB, free: 11.26 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006596/0.2868, allocations: 245.3 kB / 0.5195 GB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002432/0.287, allocations: 91.92 kB / 0.5196 GB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.2871, allocations: 2.047 kB / 0.5196 GB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.2871, allocations: 42.19 kB / 0.5196 GB, free: 11.17 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.2871, allocations: 0 / 0.5196 GB, free: 11.17 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.001572/0.2887, allocations: 0.6658 MB / 0.5203 GB, free: 10.88 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.358e-05/0.2887, allocations: 104.8 kB / 0.5204 GB, free: 10.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.2889, allocations: 155.8 kB / 0.5205 GB, free: 10.65 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/0.2889, allocations: 29.86 kB / 0.5206 GB, free: 10.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.56e-05/0.289, allocations: 109.9 kB / 0.5207 GB, free: 10.53 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.922e-05/0.289, allocations: 30.41 kB / 0.5207 GB, free: 10.51 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.454e-06/0.289, allocations: 2.5 kB / 0.5207 GB, free: 10.51 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.455e-05/0.2891, allocations: 322.8 kB / 0.521 GB, free: 10.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002405/0.2893, allocations: 84.8 kB / 0.5211 GB, free: 10.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00026/0.2896, allocations: 109.5 kB / 0.5212 GB, free: 10.17 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002331/0.2898, allocations: 87.42 kB / 0.5213 GB, free: 10.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.2898, allocations: 4 kB / 0.5213 GB, free: 10.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005295/0.2904, allocations: 212.5 kB / 0.5215 GB, free: 10.12 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.001e-05/0.2904, allocations: 107.2 kB / 0.5216 GB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.2904, allocations: 1 kB / 0.5216 GB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.2904, allocations: 0.8438 kB / 0.5216 GB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.2906, allocations: 44.86 kB / 0.5216 GB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.2907, allocations: 0 / 0.5216 GB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.2908, allocations: 36.39 kB / 0.5217 GB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.2908, allocations: 3.984 kB / 0.5217 GB, free: 10.01 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.572e-06/0.2908, allocations: 3.625 kB / 0.5217 GB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002361/0.2911, allocations: 100.9 kB / 0.5218 GB, free: 10 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-06/0.2911, allocations: 1.625 kB / 0.5218 GB, free: 10 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-06/0.2911, allocations: 0 / 0.5218 GB, free: 10 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.295e-05/0.2912, allocations: 25.31 kB / 0.5218 GB, free: 10 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.545e-06/0.2912, allocations: 2.125 kB / 0.5218 GB, free: 10 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.302e-05/0.2913, allocations: 22.03 kB / 0.5218 GB, free: 9.992 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.52e-06/0.2913, allocations: 1.656 kB / 0.5218 GB, free: 9.992 MB / 346.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 (10): * Single equations (assignments): 10 * 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 8.115e-05/0.2914, allocations: 198.9 kB / 0.522 GB, free: 9.801 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.721e-05/0.2914, allocations: 15.83 kB / 0.522 GB, free: 9.793 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.46e-05/0.2915, allocations: 15.12 kB / 0.522 GB, free: 9.785 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.2915, allocations: 1.406 kB / 0.522 GB, free: 9.785 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.2915, allocations: 1.531 kB / 0.522 GB, free: 9.785 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.2915, allocations: 8.516 kB / 0.5221 GB, free: 9.777 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008612/0.2924, allocations: 0.5513 MB / 0.5226 GB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2924, allocations: 0 / 0.5226 GB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/0.2926, allocations: 42.44 kB / 0.5226 GB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.2926, allocations: 1.469 kB / 0.5226 GB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.2926, allocations: 9.969 kB / 0.5226 GB, free: 9.441 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2926, allocations: 3.844 kB / 0.5227 GB, free: 9.441 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.2927, allocations: 1.422 kB / 0.5227 GB, free: 9.441 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007661/0.2934, allocations: 412.1 kB / 0.523 GB, free: 9.246 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.915e-05/0.2935, allocations: 93.45 kB / 0.5231 GB, free: 9.141 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.309e-05/0.2935, allocations: 2.641 kB / 0.5231 GB, free: 9.141 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002748/0.2938, allocations: 56.84 kB / 0.5232 GB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.251e-05/0.2938, allocations: 9.562 kB / 0.5232 GB, free: 9.129 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.2938, allocations: 9.562 kB / 0.5232 GB, free: 9.125 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.641e-05/0.2939, allocations: 117.8 kB / 0.5233 GB, free: 9.039 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.062e-06/0.2939, allocations: 0 / 0.5233 GB, free: 9.039 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000275/0.2942, allocations: 34.44 kB / 0.5234 GB, free: 9.035 MB / 346.7 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 (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 9.229e-05/0.2943, allocations: 100.3 kB / 0.5235 GB, free: 8.941 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006292/0.2949, allocations: 237.4 kB / 0.5237 GB, free: 8.898 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2949, allocations: 0 / 0.5237 GB, free: 8.898 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002396/0.2952, allocations: 99.06 kB / 0.5238 GB, free: 8.879 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003686/0.2956, allocations: 31.44 kB / 0.5238 GB, free: 8.871 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005838/0.2962, allocations: 361.8 kB / 0.5241 GB, free: 8.621 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001258/0.2963, allocations: 0.7041 MB / 0.5248 GB, free: 7.922 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.314e-05/0.2964, allocations: 16.7 kB / 0.5249 GB, free: 7.914 MB / 346.7 MB Notification: Performance of SimCode: time 2e-07/0.2964, allocations: 0 / 0.5249 GB, free: 7.914 MB / 346.7 MB Notification: Performance of Templates: time 0.003702/0.3001, allocations: 1.817 MB / 0.5266 GB, free: 7.781 MB / 346.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/jenkins/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