Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo): time 0.00089/0.0008901, allocations: 192.8 kB / 7.807 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9748/0.9748, allocations: 205.2 MB / 213.4 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008275/0.0008276, allocations: 94.94 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1462/0.1462, allocations: 43.5 MB / 352.9 MB, free: 1.949 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.54e-06/5.571e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.227, allocations: 58.84 MB / 476.6 MB, free: 5.207 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1016/0.3286, allocations: 85.29 MB / 0.5487 GB, free: 13.64 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001722/0.3289, allocations: 67.95 kB / 0.5487 GB, free: 13.58 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.003941/0.3328, allocations: 1.329 MB / 0.55 GB, free: 12.25 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.278e-06/0.3328, allocations: 4 kB / 0.55 GB, free: 12.25 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.0003385/0.3332, allocations: 370.2 kB / 0.5504 GB, free: 11.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.3332, allocations: 12.03 kB / 0.5504 GB, free: 11.83 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.332e-05/0.3333, allocations: 7.906 kB / 0.5504 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001722/0.3334, allocations: 202.7 kB / 0.5506 GB, free: 11.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.3335, allocations: 4 kB / 0.5506 GB, free: 11.58 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/0.3335, allocations: 4 kB / 0.5506 GB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.617e-05/0.3336, allocations: 28 kB / 0.5506 GB, free: 11.55 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.952e-05/0.3337, allocations: 61.66 kB / 0.5507 GB, free: 11.48 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.3337, allocations: 4 kB / 0.5507 GB, free: 11.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.3337, allocations: 4 kB / 0.5507 GB, free: 11.47 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.3337, allocations: 0 / 0.5507 GB, free: 11.47 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004113/0.3342, allocations: 328 kB / 0.551 GB, free: 11.12 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.465e-05/0.3342, allocations: 42.58 kB / 0.5511 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.964e-05/0.3343, allocations: 19.27 kB / 0.5511 GB, free: 11.05 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.103e-05/0.3343, allocations: 0 / 0.5511 GB, free: 11.05 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.619e-05/0.3344, allocations: 59.58 kB / 0.5511 GB, free: 10.98 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.3344, allocations: 4 kB / 0.5511 GB, free: 10.97 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001419/0.3345, allocations: 65.58 kB / 0.5512 GB, free: 10.9 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.901e-05/0.3346, allocations: 51.41 kB / 0.5512 GB, free: 10.84 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.046e-05/0.3346, allocations: 113 kB / 0.5514 GB, free: 10.72 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.3347, allocations: 25.7 kB / 0.5514 GB, free: 10.69 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.974e-05/0.3347, allocations: 100.2 kB / 0.5515 GB, free: 10.59 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.023e-05/0.3347, allocations: 15.81 kB / 0.5515 GB, free: 10.57 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-06/0.3347, allocations: 0 / 0.5515 GB, free: 10.57 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.042e-05/0.3348, allocations: 322.8 kB / 0.5518 GB, free: 10.25 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.91e-05/0.3349, allocations: 15.94 kB / 0.5518 GB, free: 10.23 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.893e-05/0.3349, allocations: 34.58 kB / 0.5518 GB, free: 10.19 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.906e-05/0.3349, allocations: 15.98 kB / 0.5519 GB, free: 10.17 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.335, allocations: 0 / 0.5519 GB, free: 10.17 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001105/0.3351, allocations: 77.52 kB / 0.5519 GB, free: 10.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/0.3351, allocations: 10.88 kB / 0.5519 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.3351, allocations: 4 kB / 0.552 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.3351, allocations: 0 / 0.552 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.89e-05/0.3352, allocations: 8 kB / 0.552 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.3352, allocations: 4.062 kB / 0.552 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.411e-05/0.3353, allocations: 8.125 kB / 0.552 GB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.713e-06/0.3353, allocations: 8.203 kB / 0.552 GB, free: 10.05 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.425e-05/0.3353, allocations: 116.9 kB / 0.5521 GB, free: 9.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.399e-05/0.3354, allocations: 11.84 kB / 0.5521 GB, free: 9.918 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.038e-05/0.3354, allocations: 12.36 kB / 0.5521 GB, free: 9.906 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.3354, allocations: 192 / 0.5521 GB, free: 9.906 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3354, allocations: 0 / 0.5521 GB, free: 9.906 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3354, allocations: 11.94 kB / 0.5521 GB, free: 9.895 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002399/0.3357, allocations: 303.1 kB / 0.5524 GB, free: 9.555 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3357, allocations: 4 kB / 0.5524 GB, free: 9.551 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.83e-05/0.3357, allocations: 3.938 kB / 0.5524 GB, free: 9.547 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.3357, allocations: 8 kB / 0.5524 GB, free: 9.539 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.3358, allocations: 3.906 kB / 0.5524 GB, free: 9.535 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3358, allocations: 0 / 0.5524 GB, free: 9.535 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3358, allocations: 0 / 0.5524 GB, free: 9.535 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001725/0.3359, allocations: 183.4 kB / 0.5526 GB, free: 9.34 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.592e-05/0.336, allocations: 81.02 kB / 0.5527 GB, free: 9.242 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.336, allocations: 0 / 0.5527 GB, free: 9.242 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.594e-05/0.3361, allocations: 16.05 kB / 0.5527 GB, free: 9.227 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.138e-05/0.3362, allocations: 7.984 kB / 0.5527 GB, free: 9.219 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.3362, allocations: 4 kB / 0.5527 GB, free: 9.215 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.067e-05/0.3362, allocations: 87.28 kB / 0.5528 GB, free: 9.129 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002138/0.3365, allocations: 15.91 kB / 0.5528 GB, free: 9.113 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.0001005/0.3366, allocations: 107.2 kB / 0.5529 GB, free: 9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001059/0.3367, allocations: 40 kB / 0.553 GB, free: 8.961 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.3367, allocations: 4.125 kB / 0.553 GB, free: 8.957 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.351e-05/0.3367, allocations: 19.94 kB / 0.553 GB, free: 8.938 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.337, allocations: 15.42 kB / 0.553 GB, free: 8.926 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003929/0.3374, allocations: 143.7 kB / 0.5531 GB, free: 8.762 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002506/0.3376, allocations: 0.7153 MB / 0.5538 GB, free: 8.02 MB / 394.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3376, allocations: 0 / 0.5538 GB, free: 8.02 MB / 394.7 MB Notification: Performance of Templates: time 0.002547/0.3402, allocations: 0.8211 MB / 0.5546 GB, free: 7.203 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches