Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 183.4 kB / 8.518 MB, free: 0.4961 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.184/1.184, allocations: 221.4 MB / 230.3 MB, free: 13.49 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 100.3 kB / 281.2 MB, free: 10.52 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1628/0.1628, allocations: 44.14 MB / 376.1 MB, free: 11.66 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 7.364e-06/7.394e-06, allocations: 4 kB / 444 MB, free: 54.38 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08891/0.08893, allocations: 61.89 MB / 0.4941 GB, free: 8.414 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.272/0.3609, allocations: 87.78 MB / 0.5798 GB, free: 10.98 MB / 402.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001816/0.3612, allocations: 59.98 kB / 0.5798 GB, free: 10.93 MB / 402.8 MB Notification: Performance of FrontEnd: time 0.01327/0.3744, allocations: 4.272 MB / 0.584 GB, free: 6.676 MB / 402.8 MB Notification: Performance of Transformations before backend: time 1.621e-05/0.3745, allocations: 4 kB / 0.584 GB, free: 6.672 MB / 402.8 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.0005986/0.3751, allocations: 450 kB / 0.5844 GB, free: 6.188 MB / 402.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.3752, allocations: 8.031 kB / 0.5845 GB, free: 6.18 MB / 402.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.202e-05/0.3752, allocations: 19.8 kB / 0.5845 GB, free: 6.16 MB / 402.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002669/0.3755, allocations: 215.4 kB / 0.5847 GB, free: 5.906 MB / 402.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.3755, allocations: 0 / 0.5847 GB, free: 5.906 MB / 402.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.626e-05/0.3756, allocations: 11.91 kB / 0.5847 GB, free: 5.895 MB / 402.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000151/0.3757, allocations: 59.98 kB / 0.5848 GB, free: 5.836 MB / 402.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001961/0.3759, allocations: 112.2 kB / 0.5849 GB, free: 5.711 MB / 402.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.3759, allocations: 0 / 0.5849 GB, free: 5.711 MB / 402.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.253e-05/0.376, allocations: 8.578 kB / 0.5849 GB, free: 5.703 MB / 402.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.376, allocations: 7.938 kB / 0.5849 GB, free: 5.695 MB / 402.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008001/0.3768, allocations: 440.9 kB / 0.5853 GB, free: 5.227 MB / 402.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004616/0.3773, allocations: 166.5 kB / 0.5855 GB, free: 5.055 MB / 402.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.667e-05/0.3773, allocations: 24.91 kB / 0.5855 GB, free: 5.027 MB / 402.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.3774, allocations: 7.984 kB / 0.5855 GB, free: 5.02 MB / 402.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.3774, allocations: 38.56 kB / 0.5855 GB, free: 4.973 MB / 402.8 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.3774, allocations: 3.938 kB / 0.5855 GB, free: 4.969 MB / 402.8 MB Notification: Performance of matching and sorting (n=7): time 0.0002463/0.3777, allocations: 85.66 kB / 0.5856 GB, free: 4.879 MB / 402.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.3777, allocations: 106.8 kB / 0.5857 GB, free: 4.75 MB / 402.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.274e-05/0.3778, allocations: 126 kB / 0.5858 GB, free: 4.617 MB / 402.8 MB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.3778, allocations: 25.7 kB / 0.5859 GB, free: 4.586 MB / 402.8 MB Notification: Performance of collectInitialEqns (initialization): time 5.473e-05/0.3779, allocations: 108 kB / 0.586 GB, free: 4.477 MB / 402.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.037e-05/0.3779, allocations: 15.7 kB / 0.586 GB, free: 4.461 MB / 402.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.813e-06/0.378, allocations: 4 kB / 0.586 GB, free: 4.457 MB / 402.8 MB Notification: Performance of setup shared object (initialization): time 9.692e-05/0.3781, allocations: 326.7 kB / 0.5863 GB, free: 4.129 MB / 402.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.196e-05/0.3781, allocations: 24 kB / 0.5863 GB, free: 4.105 MB / 402.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.34e-05/0.3782, allocations: 46.72 kB / 0.5864 GB, free: 4.051 MB / 402.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.716e-05/0.3783, allocations: 23.98 kB / 0.5864 GB, free: 4.027 MB / 402.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3783, allocations: 0 / 0.5864 GB, free: 4.027 MB / 402.8 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001493/0.3784, allocations: 85.59 kB / 0.5865 GB, free: 3.938 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.361e-05/0.3785, allocations: 97.03 kB / 0.5866 GB, free: 3.836 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.3785, allocations: 3.984 kB / 0.5866 GB, free: 3.832 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.3785, allocations: 4 kB / 0.5866 GB, free: 3.828 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001949/0.3787, allocations: 51.91 kB / 0.5866 GB, free: 3.777 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.3787, allocations: 0 / 0.5866 GB, free: 3.777 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.3789, allocations: 47.81 kB / 0.5867 GB, free: 3.73 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.3789, allocations: 0 / 0.5867 GB, free: 3.73 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.977e-06/0.3789, allocations: 6.5 kB / 0.5867 GB, free: 3.727 MB / 402.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 7.711e-05/0.379, allocations: 39.92 kB / 0.5867 GB, free: 3.688 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.71e-07/0.379, allocations: 0 / 0.5867 GB, free: 3.688 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-06/0.379, allocations: 0 / 0.5867 GB, free: 3.688 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.734e-05/0.3791, allocations: 31.98 kB / 0.5867 GB, free: 3.656 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-06/0.3791, allocations: 0 / 0.5867 GB, free: 3.656 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.513e-05/0.3792, allocations: 15.89 kB / 0.5867 GB, free: 3.641 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.3792, allocations: 4.391 kB / 0.5867 GB, free: 3.637 MB / 402.8 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 7.391e-05/0.3793, allocations: 109.9 kB / 0.5869 GB, free: 3.523 MB / 402.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.121e-05/0.3793, allocations: 11.91 kB / 0.5869 GB, free: 3.512 MB / 402.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.043e-05/0.3794, allocations: 12.5 kB / 0.5869 GB, free: 3.496 MB / 402.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.3794, allocations: 3.984 kB / 0.5869 GB, free: 3.492 MB / 402.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3794, allocations: 3.906 kB / 0.5869 GB, free: 3.488 MB / 402.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3794, allocations: 0 / 0.5869 GB, free: 3.488 MB / 402.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001928/0.3796, allocations: 194.1 kB / 0.5871 GB, free: 3.262 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.3796, allocations: 0 / 0.5871 GB, free: 3.262 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000184/0.3798, allocations: 43.97 kB / 0.5871 GB, free: 3.219 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.3798, allocations: 0 / 0.5871 GB, free: 3.219 MB / 402.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.3799, allocations: 3.984 kB / 0.5871 GB, free: 3.215 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.3799, allocations: 7.906 kB / 0.5871 GB, free: 3.207 MB / 402.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3799, allocations: 0 / 0.5871 GB, free: 3.207 MB / 402.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000245/0.3801, allocations: 219.3 kB / 0.5873 GB, free: 2.977 MB / 402.8 MB Notification: Performance of postOpt removeConstants (simulation): time 7.878e-05/0.3802, allocations: 96.84 kB / 0.5874 GB, free: 2.863 MB / 402.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.834e-05/0.3802, allocations: 0 / 0.5874 GB, free: 2.863 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003041/0.3806, allocations: 60.02 kB / 0.5875 GB, free: 2.805 MB / 402.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.004e-05/0.3806, allocations: 4 kB / 0.5875 GB, free: 2.801 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.3806, allocations: 7.984 kB / 0.5875 GB, free: 2.793 MB / 402.8 MB Notification: Performance of sort global known variables: time 6.155e-05/0.3807, allocations: 103.8 kB / 0.5876 GB, free: 2.691 MB / 402.8 MB Notification: Performance of remove unused functions: time 0.0003058/0.381, allocations: 31.91 kB / 0.5876 GB, free: 2.66 MB / 402.8 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.0001201/0.3811, allocations: 107.2 kB / 0.5877 GB, free: 2.547 MB / 402.8 MB Notification: Performance of simCode: created initialization part: time 0.0001931/0.3813, allocations: 92.64 kB / 0.5878 GB, free: 2.457 MB / 402.8 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3813, allocations: 0 / 0.5878 GB, free: 2.457 MB / 402.8 MB Notification: Performance of simCode: created simulation system equations: time 6.034e-05/0.3814, allocations: 32 kB / 0.5878 GB, free: 2.426 MB / 402.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002847/0.3817, allocations: 27.97 kB / 0.5879 GB, free: 2.398 MB / 402.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003727/0.3821, allocations: 159.6 kB / 0.588 GB, free: 2.223 MB / 402.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002917/0.3824, allocations: 0.7312 MB / 0.5887 GB, free: 1.469 MB / 402.8 MB Notification: Performance of SimCode: time 2.4e-07/0.3824, allocations: 0 / 0.5887 GB, free: 1.469 MB / 402.8 MB Notification: Performance of Templates: time 0.004798/0.3872, allocations: 2.103 MB / 0.5908 GB, free: 15.41 MB / 418.8 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.Limiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches