Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") [: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.001498/0.001498, allocations: 176.4 kB / 8.521 MB, free: 1.844 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.315/1.315, allocations: 221.4 MB / 230.3 MB, free: 7.621 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.0008997/0.0008994, allocations: 86.11 kB / 281.2 MB, free: 5.445 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.179/0.179, allocations: 44.15 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.432e-06/6.463e-06, allocations: 224 / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1173, allocations: 61.92 MB / 0.4941 GB, free: 1.633 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2811/0.3984, allocations: 85.13 MB / 0.5772 GB, free: 11.6 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000179/0.3987, allocations: 53.58 kB / 0.5773 GB, free: 11.57 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.002385/0.4011, allocations: 0.6809 MB / 0.5779 GB, free: 10.98 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.4011, allocations: 0 / 0.5779 GB, free: 10.98 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003069/0.4014, allocations: 342.3 kB / 0.5783 GB, free: 10.6 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.4015, allocations: 17.22 kB / 0.5783 GB, free: 10.58 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.566e-05/0.4015, allocations: 7.906 kB / 0.5783 GB, free: 10.57 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001878/0.4017, allocations: 175 kB / 0.5785 GB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.4017, allocations: 7.906 kB / 0.5785 GB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.4017, allocations: 0 / 0.5785 GB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.202e-05/0.4018, allocations: 15.98 kB / 0.5785 GB, free: 10.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.801e-05/0.4019, allocations: 42.33 kB / 0.5785 GB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.4019, allocations: 0 / 0.5785 GB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.4019, allocations: 3.938 kB / 0.5785 GB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.4019, allocations: 0 / 0.5785 GB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004246/0.4024, allocations: 261.4 kB / 0.5788 GB, free: 9.996 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.65e-05/0.4024, allocations: 26.48 kB / 0.5788 GB, free: 9.961 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.773e-05/0.4025, allocations: 4.859 kB / 0.5788 GB, free: 9.953 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.149e-05/0.4025, allocations: 4.062 kB / 0.5788 GB, free: 9.949 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.56e-05/0.4025, allocations: 52.92 kB / 0.5789 GB, free: 9.887 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.4025, allocations: 0 / 0.5789 GB, free: 9.887 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001114/0.4027, allocations: 41.69 kB / 0.5789 GB, free: 9.84 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/0.4027, allocations: 51.41 kB / 0.5789 GB, free: 9.777 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.771e-05/0.4028, allocations: 104.9 kB / 0.579 GB, free: 9.668 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.4028, allocations: 29.41 kB / 0.5791 GB, free: 9.637 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.002e-05/0.4029, allocations: 88.08 kB / 0.5792 GB, free: 9.547 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.583e-05/0.4029, allocations: 3.906 kB / 0.5792 GB, free: 9.543 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-06/0.4029, allocations: 4 kB / 0.5792 GB, free: 9.539 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.403, allocations: 326.7 kB / 0.5795 GB, free: 9.211 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.195e-05/0.403, allocations: 0 / 0.5795 GB, free: 9.211 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.428e-05/0.4031, allocations: 21.66 kB / 0.5795 GB, free: 9.184 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.546e-05/0.4031, allocations: 4 kB / 0.5795 GB, free: 9.18 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.4031, allocations: 3.938 kB / 0.5795 GB, free: 9.176 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.174e-05/0.4032, allocations: 49.69 kB / 0.5796 GB, free: 9.121 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.4032, allocations: 8.031 kB / 0.5796 GB, free: 9.113 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.4032, allocations: 0 / 0.5796 GB, free: 9.113 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.027e-06/0.4032, allocations: 0 / 0.5796 GB, free: 9.113 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.822e-05/0.4032, allocations: 4 kB / 0.5796 GB, free: 9.109 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.4033, allocations: 7.844 kB / 0.5796 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.968e-05/0.4033, allocations: 7.984 kB / 0.5796 GB, free: 9.094 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-06/0.4033, allocations: 0 / 0.5796 GB, free: 9.094 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: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.578e-05/0.4034, allocations: 109.2 kB / 0.5797 GB, free: 8.98 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.206e-05/0.4034, allocations: 3.906 kB / 0.5797 GB, free: 8.977 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.885e-05/0.4034, allocations: 11.98 kB / 0.5797 GB, free: 8.961 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.4034, allocations: 4 kB / 0.5797 GB, free: 8.957 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.4034, allocations: 0 / 0.5797 GB, free: 8.957 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.4035, allocations: 0 / 0.5797 GB, free: 8.957 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002533/0.4037, allocations: 279.2 kB / 0.58 GB, free: 8.641 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.4037, allocations: 0 / 0.58 GB, free: 8.641 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.341e-05/0.4038, allocations: 11.92 kB / 0.58 GB, free: 8.629 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.4038, allocations: 0 / 0.58 GB, free: 8.629 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.752e-06/0.4038, allocations: 7.828 kB / 0.58 GB, free: 8.625 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.4038, allocations: 0 / 0.58 GB, free: 8.625 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.4038, allocations: 0 / 0.58 GB, free: 8.625 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001235/0.4039, allocations: 143.5 kB / 0.5801 GB, free: 8.469 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.429e-05/0.404, allocations: 81.02 kB / 0.5802 GB, free: 8.371 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.493e-05/0.404, allocations: 4 kB / 0.5802 GB, free: 8.367 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.747e-05/0.4041, allocations: 0 / 0.5802 GB, free: 8.367 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.634e-05/0.4041, allocations: 4.094 kB / 0.5802 GB, free: 8.363 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.4041, allocations: 12 kB / 0.5802 GB, free: 8.352 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.74e-05/0.4042, allocations: 79.28 kB / 0.5803 GB, free: 8.273 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002062/0.4044, allocations: 4 kB / 0.5803 GB, free: 8.27 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001057/0.4045, allocations: 95.25 kB / 0.5804 GB, free: 8.168 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.182e-05/0.4046, allocations: 19.92 kB / 0.5804 GB, free: 8.148 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.4046, allocations: 0 / 0.5804 GB, free: 8.148 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.728e-05/0.4046, allocations: 12 kB / 0.5804 GB, free: 8.137 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001981/0.4048, allocations: 12.59 kB / 0.5804 GB, free: 8.125 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002262/0.405, allocations: 87.97 kB / 0.5805 GB, free: 8.012 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003056/0.4054, allocations: 0.6954 MB / 0.5812 GB, free: 7.293 MB / 394.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4054, allocations: 0 / 0.5812 GB, free: 7.293 MB / 394.7 MB Notification: Performance of Templates: time 0.002153/0.4075, allocations: 448.6 kB / 0.5816 GB, free: 6.855 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches