Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") [: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.0009811/0.0009811, allocations: 179.4 kB / 8.519 MB, free: 1.859 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 221.4 MB / 230.3 MB, free: 7.695 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009152/0.0009153, allocations: 92.72 kB / 281.2 MB, free: 5.449 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1762/0.1762, allocations: 44.14 MB / 376.1 MB, free: 3.203 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.181e-06/6.221e-06, allocations: 0 / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1086, allocations: 61.91 MB / 0.4941 GB, free: 1.613 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2971/0.4057, allocations: 86.63 MB / 0.5787 GB, free: 10.13 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000182/0.4059, allocations: 63.47 kB / 0.5787 GB, free: 10.1 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.008736/0.4147, allocations: 2.64 MB / 0.5813 GB, free: 7.484 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.4147, allocations: 0 / 0.5813 GB, free: 7.484 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005884/0.4153, allocations: 430.1 kB / 0.5817 GB, free: 7.02 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.4154, allocations: 11.97 kB / 0.5817 GB, free: 7.008 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.539e-05/0.4154, allocations: 11.91 kB / 0.5818 GB, free: 6.996 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003126/0.4157, allocations: 206.9 kB / 0.582 GB, free: 6.754 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.4158, allocations: 4 kB / 0.582 GB, free: 6.75 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.355e-05/0.4158, allocations: 7.906 kB / 0.582 GB, free: 6.742 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.521e-05/0.4159, allocations: 28 kB / 0.582 GB, free: 6.715 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001348/0.416, allocations: 77.61 kB / 0.5821 GB, free: 6.633 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.4161, allocations: 3.938 kB / 0.5821 GB, free: 6.629 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.4161, allocations: 0 / 0.5821 GB, free: 6.629 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.4161, allocations: 7.938 kB / 0.5821 GB, free: 6.621 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005183/0.4166, allocations: 345.1 kB / 0.5824 GB, free: 6.246 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.4168, allocations: 46.52 kB / 0.5824 GB, free: 6.191 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.7e-05/0.4168, allocations: 21.02 kB / 0.5825 GB, free: 6.168 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.4168, allocations: 4 kB / 0.5825 GB, free: 6.164 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.781e-05/0.4169, allocations: 67.44 kB / 0.5825 GB, free: 6.086 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.4169, allocations: 0 / 0.5825 GB, free: 6.086 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001721/0.4171, allocations: 65.59 kB / 0.5826 GB, free: 6.016 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.37e-05/0.4171, allocations: 55.39 kB / 0.5827 GB, free: 5.949 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.886e-05/0.4172, allocations: 124.1 kB / 0.5828 GB, free: 5.82 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.4173, allocations: 33.7 kB / 0.5828 GB, free: 5.781 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.204e-05/0.4173, allocations: 96.36 kB / 0.5829 GB, free: 5.68 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.4173, allocations: 19.73 kB / 0.5829 GB, free: 5.66 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-06/0.4174, allocations: 0 / 0.5829 GB, free: 5.66 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.778e-05/0.4174, allocations: 318.8 kB / 0.5832 GB, free: 5.34 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.601e-05/0.4175, allocations: 20 kB / 0.5832 GB, free: 5.32 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.281e-05/0.4175, allocations: 29.72 kB / 0.5833 GB, free: 5.285 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.991e-05/0.4176, allocations: 15.91 kB / 0.5833 GB, free: 5.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.4176, allocations: 0 / 0.5833 GB, free: 5.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001227/0.4177, allocations: 81.53 kB / 0.5834 GB, free: 5.184 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.4177, allocations: 6.188 kB / 0.5834 GB, free: 5.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.4177, allocations: 0 / 0.5834 GB, free: 5.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.4178, allocations: 4 kB / 0.5834 GB, free: 5.176 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.4179, allocations: 19.98 kB / 0.5834 GB, free: 5.156 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.4179, allocations: 7.938 kB / 0.5834 GB, free: 5.148 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.418, allocations: 20.3 kB / 0.5834 GB, free: 5.129 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.418, allocations: 4 kB / 0.5834 GB, free: 5.125 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u,change.y) * Number of discrete 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 6.874e-05/0.4181, allocations: 108.9 kB / 0.5835 GB, free: 5.012 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.746e-05/0.4181, allocations: 11.84 kB / 0.5835 GB, free: 5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.397e-05/0.4182, allocations: 16.5 kB / 0.5835 GB, free: 4.984 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.4182, allocations: 0 / 0.5835 GB, free: 4.984 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4182, allocations: 0 / 0.5835 GB, free: 4.984 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.4182, allocations: 3.938 kB / 0.5836 GB, free: 4.98 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002949/0.4185, allocations: 331 kB / 0.5839 GB, free: 4.613 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.4185, allocations: 0 / 0.5839 GB, free: 4.613 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.812e-05/0.4186, allocations: 16 kB / 0.5839 GB, free: 4.598 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.4186, allocations: 0 / 0.5839 GB, free: 4.598 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.4186, allocations: 3.984 kB / 0.5839 GB, free: 4.594 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.4186, allocations: 0 / 0.5839 GB, free: 4.594 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.4186, allocations: 7.984 kB / 0.5839 GB, free: 4.586 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002119/0.4189, allocations: 184 kB / 0.5841 GB, free: 4.391 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.811e-05/0.4189, allocations: 85.02 kB / 0.5842 GB, free: 4.289 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.114e-05/0.4189, allocations: 0 / 0.5842 GB, free: 4.289 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/0.4191, allocations: 28.03 kB / 0.5842 GB, free: 4.262 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.719e-05/0.4192, allocations: 15.98 kB / 0.5842 GB, free: 4.246 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.4192, allocations: 3.984 kB / 0.5842 GB, free: 4.242 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.477e-05/0.4193, allocations: 106.2 kB / 0.5843 GB, free: 4.141 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002344/0.4195, allocations: 23.84 kB / 0.5843 GB, free: 4.117 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (change.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001186/0.4196, allocations: 95.23 kB / 0.5844 GB, free: 4.012 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001156/0.4198, allocations: 48.06 kB / 0.5845 GB, free: 3.965 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.4198, allocations: 0 / 0.5845 GB, free: 3.965 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.538e-05/0.4198, allocations: 27.94 kB / 0.5845 GB, free: 3.938 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.4201, allocations: 15.98 kB / 0.5845 GB, free: 3.922 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003319/0.4204, allocations: 127.6 kB / 0.5846 GB, free: 3.777 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002765/0.4207, allocations: 0.7126 MB / 0.5853 GB, free: 3.039 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4207, allocations: 0 / 0.5853 GB, free: 3.039 MB / 394.7 MB Notification: Performance of Templates: time 0.003251/0.424, allocations: 1.063 MB / 0.5864 GB, free: 1.977 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches