Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001159/0.001159, allocations: 198.2 kB / 8.539 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 225.5 MB / 234.4 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001057/0.001057, allocations: 94.14 kB / 286.3 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2009/0.2009, allocations: 45.14 MB / 383.3 MB, free: 468 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.472e-06/6.502e-06, allocations: 0 / 452.6 MB, free: 76.14 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1177, allocations: 63.23 MB / 0.5038 GB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3437/0.4614, allocations: 87.37 MB / 0.5891 GB, free: 15.48 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002026/0.4617, allocations: 64.38 kB / 0.5891 GB, free: 15.45 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.004647/0.4664, allocations: 1.432 MB / 0.5905 GB, free: 14.29 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.485e-05/0.4664, allocations: 4 kB / 0.5905 GB, free: 14.28 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.0004523/0.4669, allocations: 376.5 kB / 0.5909 GB, free: 13.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.4669, allocations: 8.031 kB / 0.5909 GB, free: 13.87 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.408e-05/0.4669, allocations: 11.89 kB / 0.5909 GB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002049/0.4672, allocations: 195.3 kB / 0.5911 GB, free: 13.63 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.4672, allocations: 0 / 0.5911 GB, free: 13.63 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.514e-05/0.4672, allocations: 8 kB / 0.5911 GB, free: 13.62 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001008/0.4673, allocations: 33.98 kB / 0.5911 GB, free: 13.6 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.4674, allocations: 61.75 kB / 0.5912 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.4675, allocations: 0 / 0.5912 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.4675, allocations: 0 / 0.5912 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.4675, allocations: 4 kB / 0.5912 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004923/0.468, allocations: 326.3 kB / 0.5915 GB, free: 13.21 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.428e-05/0.4681, allocations: 41.58 kB / 0.5916 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.9e-05/0.4681, allocations: 12.58 kB / 0.5916 GB, free: 13.15 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.4681, allocations: 0 / 0.5916 GB, free: 13.15 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.2e-05/0.4682, allocations: 65.94 kB / 0.5916 GB, free: 13.08 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.4682, allocations: 0 / 0.5916 GB, free: 13.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001611/0.4684, allocations: 63.23 kB / 0.5917 GB, free: 13.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.678e-05/0.4685, allocations: 55.39 kB / 0.5918 GB, free: 12.96 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.267e-05/0.4685, allocations: 103.4 kB / 0.5918 GB, free: 12.86 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.4686, allocations: 29.7 kB / 0.5919 GB, free: 12.82 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.474e-05/0.4686, allocations: 99.75 kB / 0.592 GB, free: 12.72 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.357e-05/0.4687, allocations: 27.11 kB / 0.592 GB, free: 12.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.108e-06/0.4687, allocations: 0 / 0.592 GB, free: 12.7 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.4688, allocations: 318.9 kB / 0.5923 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.408e-05/0.4688, allocations: 18.38 kB / 0.5923 GB, free: 12.37 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.374e-05/0.4689, allocations: 37.69 kB / 0.5924 GB, free: 12.33 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.183e-05/0.4689, allocations: 15.36 kB / 0.5924 GB, free: 12.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4689, allocations: 4 kB / 0.5924 GB, free: 12.31 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001137/0.469, allocations: 77.22 kB / 0.5924 GB, free: 12.24 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/0.4691, allocations: 4 kB / 0.5925 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.4691, allocations: 0 / 0.5925 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.4691, allocations: 4 kB / 0.5925 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.499e-05/0.4692, allocations: 11.55 kB / 0.5925 GB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.4692, allocations: 4.062 kB / 0.5925 GB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.61e-05/0.4693, allocations: 8.062 kB / 0.5925 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.4693, allocations: 11.98 kB / 0.5925 GB, free: 12.2 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 7.334e-05/0.4694, allocations: 104.9 kB / 0.5926 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.54e-05/0.4694, allocations: 7.906 kB / 0.5926 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.913e-05/0.4694, allocations: 15.8 kB / 0.5926 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.4694, allocations: 0 / 0.5926 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4694, allocations: 0 / 0.5926 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.4694, allocations: 0 / 0.5926 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002808/0.4697, allocations: 316 kB / 0.5929 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.4697, allocations: 0 / 0.5929 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.26e-05/0.4698, allocations: 7.938 kB / 0.5929 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.4698, allocations: 0 / 0.5929 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.4698, allocations: 7.891 kB / 0.5929 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.4698, allocations: 4 kB / 0.5929 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4698, allocations: 0 / 0.5929 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001716/0.47, allocations: 173.4 kB / 0.5931 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.777e-05/0.4701, allocations: 85.02 kB / 0.5932 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.949e-05/0.4701, allocations: 4.062 kB / 0.5932 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.911e-05/0.4702, allocations: 7.984 kB / 0.5932 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.373e-05/0.4703, allocations: 11.97 kB / 0.5932 GB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-06/0.4703, allocations: 7.625 kB / 0.5932 GB, free: 11.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.55e-05/0.4703, allocations: 89.2 kB / 0.5933 GB, free: 11.33 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002342/0.4706, allocations: 27.83 kB / 0.5933 GB, free: 11.3 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.0001238/0.4707, allocations: 99.38 kB / 0.5934 GB, free: 11.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001012/0.4708, allocations: 46 kB / 0.5935 GB, free: 11.16 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.4708, allocations: 0 / 0.5935 GB, free: 11.16 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.267e-05/0.4709, allocations: 23.5 kB / 0.5935 GB, free: 11.15 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002469/0.4711, allocations: 12.06 kB / 0.5935 GB, free: 11.14 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004725/0.4716, allocations: 146.2 kB / 0.5936 GB, free: 10.98 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000315/0.4719, allocations: 0.7162 MB / 0.5943 GB, free: 10.24 MB / 394.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4719, allocations: 0 / 0.5943 GB, free: 10.24 MB / 394.7 MB Notification: Performance of Templates: time 0.002822/0.4748, allocations: 0.8073 MB / 0.5951 GB, free: 9.449 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches