Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Limiters.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_ModelicaTest.Blocks.Limiters") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001671/0.001671, allocations: 175.7 kB / 8.147 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.733/1.733, allocations: 205.2 MB / 213.8 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001327/0.001327, allocations: 87.09 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3019/0.3019, allocations: 43.49 MB / 353.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.866e-06/9.067e-06, allocations: 4 kB / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.3138, allocations: 58.83 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1531/0.4669, allocations: 86.75 MB / 0.5501 GB, free: 12.32 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002353/0.4672, allocations: 63.47 kB / 0.5501 GB, free: 12.26 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02202/0.4893, allocations: 4.252 MB / 0.5543 GB, free: 8.012 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.2e-05/0.4894, allocations: 4 kB / 0.5543 GB, free: 8.008 MB / 394.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.000876/0.4903, allocations: 450 kB / 0.5547 GB, free: 7.523 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.4903, allocations: 11.97 kB / 0.5547 GB, free: 7.512 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.187e-05/0.4904, allocations: 15.81 kB / 0.5548 GB, free: 7.496 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004389/0.4909, allocations: 229.5 kB / 0.555 GB, free: 7.23 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.4909, allocations: 4 kB / 0.555 GB, free: 7.227 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.377e-05/0.4909, allocations: 4 kB / 0.555 GB, free: 7.223 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002257/0.4912, allocations: 55.98 kB / 0.555 GB, free: 7.168 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000309/0.4915, allocations: 128.1 kB / 0.5552 GB, free: 7.027 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.4915, allocations: 4 kB / 0.5552 GB, free: 7.023 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.707e-05/0.4916, allocations: 0 / 0.5552 GB, free: 7.023 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-06/0.4916, allocations: 4 kB / 0.5552 GB, free: 7.02 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.4928, allocations: 444.9 kB / 0.5556 GB, free: 6.547 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008202/0.4937, allocations: 166.6 kB / 0.5557 GB, free: 6.375 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.553e-05/0.4938, allocations: 32.89 kB / 0.5558 GB, free: 6.34 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.4938, allocations: 4 kB / 0.5558 GB, free: 6.336 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.4939, allocations: 30.56 kB / 0.5558 GB, free: 6.297 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 2.405e-06/0.4939, allocations: 0 / 0.5558 GB, free: 6.297 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003421/0.4942, allocations: 89.53 kB / 0.5559 GB, free: 6.203 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/0.4943, allocations: 106.8 kB / 0.556 GB, free: 6.074 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.4945, allocations: 134.6 kB / 0.5561 GB, free: 5.938 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.6e-05/0.4945, allocations: 25.7 kB / 0.5561 GB, free: 5.906 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.201e-05/0.4946, allocations: 170.3 kB / 0.5563 GB, free: 5.738 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.75e-05/0.4947, allocations: 19.7 kB / 0.5563 GB, free: 5.719 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.018e-05/0.4947, allocations: 0 / 0.5563 GB, free: 5.719 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.4948, allocations: 314.8 kB / 0.5566 GB, free: 5.402 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.4e-05/0.4949, allocations: 20 kB / 0.5567 GB, free: 5.383 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.495, allocations: 50.56 kB / 0.5567 GB, free: 5.324 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.708e-05/0.4951, allocations: 20 kB / 0.5567 GB, free: 5.305 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.4952, allocations: 0 / 0.5567 GB, free: 5.305 MB / 394.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002531/0.4954, allocations: 93.72 kB / 0.5568 GB, free: 5.207 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.438e-05/0.4955, allocations: 96.94 kB / 0.5569 GB, free: 5.105 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.4955, allocations: 0 / 0.5569 GB, free: 5.105 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.4955, allocations: 0 / 0.5569 GB, free: 5.105 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003427/0.4959, allocations: 44 kB / 0.5569 GB, free: 5.062 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.4959, allocations: 4 kB / 0.5569 GB, free: 5.059 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002772/0.4962, allocations: 47.81 kB / 0.557 GB, free: 5.012 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.4962, allocations: 0 / 0.557 GB, free: 5.012 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.001e-06/0.4962, allocations: 4 kB / 0.557 GB, free: 5.008 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001377/0.4964, allocations: 39.98 kB / 0.557 GB, free: 4.969 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-06/0.4964, allocations: 0 / 0.557 GB, free: 4.969 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-06/0.4964, allocations: 0 / 0.557 GB, free: 4.969 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.4966, allocations: 27.92 kB / 0.5571 GB, free: 4.941 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.044e-06/0.4966, allocations: 0 / 0.5571 GB, free: 4.941 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001403/0.4968, allocations: 27.91 kB / 0.5571 GB, free: 4.914 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.4968, allocations: 0 / 0.5571 GB, free: 4.914 MB / 394.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 () * 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 8.423e-05/0.4969, allocations: 35.02 kB / 0.5571 GB, free: 4.875 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.371e-05/0.4969, allocations: 11.84 kB / 0.5571 GB, free: 4.863 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.005e-05/0.497, allocations: 16.48 kB / 0.5571 GB, free: 4.848 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.758e-06/0.497, allocations: 4 kB / 0.5572 GB, free: 4.844 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.4971, allocations: 0 / 0.5572 GB, free: 4.844 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.4971, allocations: 0 / 0.5572 GB, free: 4.844 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003483/0.4974, allocations: 202 kB / 0.5573 GB, free: 4.609 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.4974, allocations: 4 kB / 0.5573 GB, free: 4.605 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003396/0.4978, allocations: 39.97 kB / 0.5574 GB, free: 4.566 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.4978, allocations: 4 kB / 0.5574 GB, free: 4.562 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.4978, allocations: 4 kB / 0.5574 GB, free: 4.559 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.4979, allocations: 0 / 0.5574 GB, free: 4.559 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.4979, allocations: 0 / 0.5574 GB, free: 4.559 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004121/0.4983, allocations: 231.7 kB / 0.5576 GB, free: 4.316 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.739e-05/0.4984, allocations: 88.92 kB / 0.5577 GB, free: 4.211 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.855e-05/0.4984, allocations: 0 / 0.5577 GB, free: 4.211 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005598/0.499, allocations: 56.02 kB / 0.5578 GB, free: 4.156 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.71e-05/0.499, allocations: 7.984 kB / 0.5578 GB, free: 4.148 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.4991, allocations: 4 kB / 0.5578 GB, free: 4.145 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001085/0.4992, allocations: 112.1 kB / 0.5579 GB, free: 4.035 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004057/0.4996, allocations: 39.84 kB / 0.5579 GB, free: 3.996 MB / 394.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 () * 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.0001646/0.4998, allocations: 103.2 kB / 0.558 GB, free: 3.887 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003088/0.5001, allocations: 83.92 kB / 0.5581 GB, free: 3.805 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5001, allocations: 0 / 0.5581 GB, free: 3.805 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 9.748e-05/0.5002, allocations: 28 kB / 0.5581 GB, free: 3.777 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004201/0.5007, allocations: 27.97 kB / 0.5581 GB, free: 3.75 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005729/0.5012, allocations: 181.5 kB / 0.5583 GB, free: 3.539 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004484/0.5017, allocations: 0.7274 MB / 0.559 GB, free: 2.785 MB / 394.7 MB Notification: Performance of SimCode: time 7.31e-07/0.5017, allocations: 0 / 0.559 GB, free: 2.785 MB / 394.7 MB Notification: Performance of Templates: time 0.004744/0.5065, allocations: 1.769 MB / 0.5608 GB, free: 1.031 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Limiters.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Limiters.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Limiters.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Limiters.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Limiters.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Limiters --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Limiters.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Limiters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Limiters/Limiters.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Limiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches