Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") [: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.001323/0.001323, allocations: 179.7 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.271/1.271, allocations: 221.4 MB / 230.3 MB, free: 7.613 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.0009488/0.0009487, allocations: 93.8 kB / 281.2 MB, free: 5.441 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.1816/0.1816, allocations: 44.14 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.961e-06/5.991e-06, allocations: 224 / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1132, allocations: 61.91 MB / 0.4941 GB, free: 1.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2858/0.3991, allocations: 86.3 MB / 0.5784 GB, free: 10.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002222/0.3994, allocations: 59.98 kB / 0.5784 GB, free: 10.41 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.004318/0.4037, allocations: 1.377 MB / 0.5798 GB, free: 9.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.4037, allocations: 3.984 kB / 0.5798 GB, free: 9.086 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0003659/0.4041, allocations: 374.2 kB / 0.5801 GB, free: 8.676 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.4042, allocations: 17.22 kB / 0.5801 GB, free: 8.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.5e-05/0.4042, allocations: 7.906 kB / 0.5801 GB, free: 8.652 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001816/0.4044, allocations: 186.9 kB / 0.5803 GB, free: 8.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.4044, allocations: 4 kB / 0.5803 GB, free: 8.426 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.841e-05/0.4044, allocations: 7.938 kB / 0.5803 GB, free: 8.418 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.802e-05/0.4045, allocations: 28 kB / 0.5804 GB, free: 8.391 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.874e-05/0.4046, allocations: 57.69 kB / 0.5804 GB, free: 8.328 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.4046, allocations: 4 kB / 0.5804 GB, free: 8.324 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.4047, allocations: 10.94 kB / 0.5804 GB, free: 8.316 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.4047, allocations: 0.5625 kB / 0.5804 GB, free: 8.316 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004407/0.4051, allocations: 329 kB / 0.5807 GB, free: 7.957 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.399e-05/0.4052, allocations: 42.56 kB / 0.5808 GB, free: 7.906 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.937e-05/0.4052, allocations: 17.02 kB / 0.5808 GB, free: 7.887 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.145e-05/0.4053, allocations: 0 / 0.5808 GB, free: 7.887 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.543e-05/0.4053, allocations: 67.39 kB / 0.5809 GB, free: 7.809 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.4053, allocations: 3.938 kB / 0.5809 GB, free: 7.805 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001515/0.4055, allocations: 61.59 kB / 0.5809 GB, free: 7.738 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.786e-05/0.4055, allocations: 51.41 kB / 0.581 GB, free: 7.676 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.349e-05/0.4056, allocations: 113 kB / 0.5811 GB, free: 7.559 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.4056, allocations: 25.7 kB / 0.5811 GB, free: 7.527 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.115e-05/0.4057, allocations: 100.2 kB / 0.5812 GB, free: 7.422 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.087e-05/0.4057, allocations: 15.8 kB / 0.5812 GB, free: 7.406 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-06/0.4057, allocations: 0 / 0.5812 GB, free: 7.406 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.853e-05/0.4058, allocations: 322.8 kB / 0.5815 GB, free: 7.082 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.147e-05/0.4059, allocations: 16 kB / 0.5815 GB, free: 7.066 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.528e-05/0.4059, allocations: 34.52 kB / 0.5816 GB, free: 7.023 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.119e-05/0.4059, allocations: 15.98 kB / 0.5816 GB, free: 7.008 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.406, allocations: 0 / 0.5816 GB, free: 7.008 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000111/0.4061, allocations: 77.53 kB / 0.5817 GB, free: 6.926 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.397e-06/0.4061, allocations: 8.062 kB / 0.5817 GB, free: 6.918 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.4061, allocations: 4 kB / 0.5817 GB, free: 6.914 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.337e-06/0.4061, allocations: 3.828 kB / 0.5817 GB, free: 6.914 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.131e-05/0.4062, allocations: 8 kB / 0.5817 GB, free: 6.906 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.4062, allocations: 0 / 0.5817 GB, free: 6.906 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.913e-05/0.4063, allocations: 15.97 kB / 0.5817 GB, free: 6.891 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.4063, allocations: 4 kB / 0.5817 GB, free: 6.887 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u) * 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.549e-05/0.4063, allocations: 111.3 kB / 0.5818 GB, free: 6.773 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.647e-05/0.4064, allocations: 7.906 kB / 0.5818 GB, free: 6.766 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.171e-05/0.4064, allocations: 12.31 kB / 0.5818 GB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.4064, allocations: 0 / 0.5818 GB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.4064, allocations: 0 / 0.5818 GB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.4064, allocations: 0 / 0.5818 GB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002549/0.4067, allocations: 311.7 kB / 0.5821 GB, free: 6.406 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.4067, allocations: 0 / 0.5821 GB, free: 6.406 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.893e-05/0.4068, allocations: 8 kB / 0.5821 GB, free: 6.398 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.4068, allocations: 8 kB / 0.5821 GB, free: 6.391 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-06/0.4068, allocations: 0 / 0.5821 GB, free: 6.391 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.4068, allocations: 3.906 kB / 0.5822 GB, free: 6.387 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.4068, allocations: 3.938 kB / 0.5822 GB, free: 6.383 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001717/0.407, allocations: 187.7 kB / 0.5823 GB, free: 6.184 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.471e-05/0.407, allocations: 81.02 kB / 0.5824 GB, free: 6.086 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.859e-05/0.4071, allocations: 0 / 0.5824 GB, free: 6.086 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.656e-05/0.4072, allocations: 12.25 kB / 0.5824 GB, free: 6.074 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.566e-05/0.4072, allocations: 7.984 kB / 0.5824 GB, free: 6.066 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-06/0.4072, allocations: 7.922 kB / 0.5824 GB, free: 6.059 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.416e-05/0.4073, allocations: 91.28 kB / 0.5825 GB, free: 5.969 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000221/0.4075, allocations: 12 kB / 0.5825 GB, free: 5.957 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 (fallingEdge.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.0001167/0.4076, allocations: 103.1 kB / 0.5826 GB, free: 5.848 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001254/0.4078, allocations: 40 kB / 0.5827 GB, free: 5.809 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.4078, allocations: 8.125 kB / 0.5827 GB, free: 5.801 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.096e-05/0.4078, allocations: 20 kB / 0.5827 GB, free: 5.781 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.4081, allocations: 11.98 kB / 0.5827 GB, free: 5.77 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004487/0.4085, allocations: 147.7 kB / 0.5829 GB, free: 5.605 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002829/0.4088, allocations: 0.7113 MB / 0.5835 GB, free: 4.867 MB / 394.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4088, allocations: 4 kB / 0.5836 GB, free: 4.863 MB / 394.7 MB Notification: Performance of Templates: time 0.002748/0.4116, allocations: 0.8198 MB / 0.5844 GB, free: 4.051 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches