Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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_cpp_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002464/0.002469, allocations: 175.8 kB / 8.147 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.702/1.702, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001376/0.001376, allocations: 85.42 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2673/0.2673, allocations: 43.49 MB / 353.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.316e-06/8.596e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2834, allocations: 58.84 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1899/0.4734, allocations: 85.31 MB / 0.5487 GB, free: 13.8 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/0.4738, allocations: 55.98 kB / 0.5487 GB, free: 13.75 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.008821/0.4826, allocations: 1.333 MB / 0.55 GB, free: 12.42 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.766e-05/0.4827, allocations: 8 kB / 0.55 GB, free: 12.41 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.000684/0.4834, allocations: 366.2 kB / 0.5504 GB, free: 12.01 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.4834, allocations: 11.97 kB / 0.5504 GB, free: 12 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.689e-05/0.4835, allocations: 7.906 kB / 0.5504 GB, free: 11.99 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003232/0.4839, allocations: 186.8 kB / 0.5506 GB, free: 11.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.4839, allocations: 8 kB / 0.5506 GB, free: 11.76 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.33e-05/0.4839, allocations: 7.984 kB / 0.5506 GB, free: 11.75 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001825/0.4841, allocations: 32 kB / 0.5506 GB, free: 11.72 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002069/0.4844, allocations: 57.69 kB / 0.5507 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.4844, allocations: 0 / 0.5507 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.4844, allocations: 3.984 kB / 0.5507 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.4844, allocations: 0 / 0.5507 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008726/0.4853, allocations: 328.2 kB / 0.551 GB, free: 11.3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001584/0.4855, allocations: 42.56 kB / 0.551 GB, free: 11.25 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.549e-05/0.4856, allocations: 27.36 kB / 0.5511 GB, free: 11.22 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.4856, allocations: 0 / 0.5511 GB, free: 11.22 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001749/0.4858, allocations: 59.45 kB / 0.5511 GB, free: 11.15 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 2.264e-06/0.4858, allocations: 0 / 0.5511 GB, free: 11.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002755/0.4861, allocations: 61.59 kB / 0.5512 GB, free: 11.08 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.215e-05/0.4862, allocations: 59.39 kB / 0.5512 GB, free: 11.01 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.4864, allocations: 112.9 kB / 0.5513 GB, free: 10.89 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.4864, allocations: 29.7 kB / 0.5514 GB, free: 10.86 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.4865, allocations: 162.6 kB / 0.5515 GB, free: 10.7 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.264e-05/0.4866, allocations: 15.8 kB / 0.5515 GB, free: 10.68 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.366e-06/0.4866, allocations: 4 kB / 0.5515 GB, free: 10.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.4868, allocations: 314.8 kB / 0.5519 GB, free: 10.36 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.536e-05/0.4869, allocations: 15.94 kB / 0.5519 GB, free: 10.34 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.487, allocations: 30.58 kB / 0.5519 GB, free: 10.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.195e-05/0.4871, allocations: 19.98 kB / 0.5519 GB, free: 10.29 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.217e-06/0.4871, allocations: 0 / 0.5519 GB, free: 10.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002401/0.4874, allocations: 73.53 kB / 0.552 GB, free: 10.21 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.4874, allocations: 8 kB / 0.552 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.4874, allocations: 0 / 0.552 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.4875, allocations: 0 / 0.552 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.4876, allocations: 8 kB / 0.552 GB, free: 10.19 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.4876, allocations: 0 / 0.552 GB, free: 10.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001396/0.4878, allocations: 16.19 kB / 0.552 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.4878, allocations: 0 / 0.552 GB, free: 10.18 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 8.344e-05/0.4879, allocations: 41.7 kB / 0.5521 GB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.505e-05/0.488, allocations: 12.08 kB / 0.5521 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.349e-05/0.488, allocations: 12.31 kB / 0.5521 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.158e-06/0.4881, allocations: 11.92 kB / 0.5521 GB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.4881, allocations: 0 / 0.5521 GB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.4881, allocations: 0 / 0.5521 GB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005532/0.4887, allocations: 315 kB / 0.5524 GB, free: 9.742 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.4887, allocations: 0 / 0.5524 GB, free: 9.742 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.422e-05/0.4888, allocations: 7.938 kB / 0.5524 GB, free: 9.734 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.858e-06/0.4888, allocations: 0 / 0.5524 GB, free: 9.734 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.4888, allocations: 0 / 0.5524 GB, free: 9.734 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.4888, allocations: 240 / 0.5524 GB, free: 9.734 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.298e-05/0.4889, allocations: 4 kB / 0.5524 GB, free: 9.73 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003586/0.4892, allocations: 191.4 kB / 0.5526 GB, free: 9.527 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.66e-05/0.4893, allocations: 81.02 kB / 0.5527 GB, free: 9.43 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.751e-05/0.4894, allocations: 4 kB / 0.5527 GB, free: 9.426 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.4896, allocations: 7.984 kB / 0.5527 GB, free: 9.418 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.4897, allocations: 11.89 kB / 0.5527 GB, free: 9.406 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.4898, allocations: 4 kB / 0.5527 GB, free: 9.402 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.888e-05/0.4899, allocations: 91.28 kB / 0.5528 GB, free: 9.312 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004725/0.4904, allocations: 16.06 kB / 0.5528 GB, free: 9.297 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.0001905/0.4906, allocations: 103.2 kB / 0.5529 GB, free: 9.188 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002141/0.4908, allocations: 40 kB / 0.5529 GB, free: 9.148 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4908, allocations: 0 / 0.5529 GB, free: 9.148 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 9.452e-05/0.4909, allocations: 19.94 kB / 0.5529 GB, free: 9.129 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004679/0.4914, allocations: 11.98 kB / 0.553 GB, free: 9.117 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008725/0.4923, allocations: 177.4 kB / 0.5531 GB, free: 8.914 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004946/0.4928, allocations: 0.7114 MB / 0.5538 GB, free: 8.176 MB / 394.7 MB Notification: Performance of SimCode: time 1.112e-06/0.4929, allocations: 4 kB / 0.5538 GB, free: 8.172 MB / 394.7 MB Notification: Performance of Templates: time 0.004594/0.4975, allocations: 1.085 MB / 0.5549 GB, free: 7.09 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches