Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) 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) 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) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [: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/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.364/1.364, allocations: 285.5 MB / 292.8 MB, free: 10.42 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 189.2 kB / 361.1 MB, free: 7.098 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.189/1.189, allocations: 205.1 MB / 0.6195 GB, free: 10.33 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009138/0.0009137, allocations: 89.02 kB / 0.7325 GB, free: 44.29 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2137/0.2147, allocations: 121.4 MB / 0.8511 GB, free: 2.934 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5021/0.7168, allocations: 115.3 MB / 0.9638 GB, free: 78.29 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1644/0.8812, allocations: 139.2 MB / 1.1 GB, free: 0.8086 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002353/0.8815, allocations: 74.19 kB / 1.1 GB, free: 0.7383 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.009402/0.8909, allocations: 3.601 MB / 1.103 GB, free: 13.17 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.891, allocations: 8.5 kB / 1.103 GB, free: 13.16 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.906e-05/0.891, allocations: 19.72 kB / 1.103 GB, free: 13.14 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002501/0.8913, allocations: 226.7 kB / 1.104 GB, free: 12.88 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.8913, allocations: 4.875 kB / 1.104 GB, free: 12.88 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.85e-05/0.8913, allocations: 15.98 kB / 1.104 GB, free: 12.86 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001064/0.8915, allocations: 33.56 kB / 1.104 GB, free: 12.83 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001666/0.8916, allocations: 119.5 kB / 1.104 GB, free: 12.7 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.8917, allocations: 0 / 1.104 GB, free: 12.7 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.8917, allocations: 1.781 kB / 1.104 GB, free: 12.7 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.575e-06/0.8917, allocations: 4 kB / 1.104 GB, free: 12.69 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000829/0.8925, allocations: 0.7085 MB / 1.104 GB, free: 11.93 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.314e-05/0.8926, allocations: 34.58 kB / 1.104 GB, free: 11.89 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.121e-05/0.8926, allocations: 20.86 kB / 1.104 GB, free: 11.86 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.8927, allocations: 7.984 kB / 1.104 GB, free: 11.86 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001181/0.8928, allocations: 102.7 kB / 1.105 GB, free: 11.73 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.8928, allocations: 0 / 1.105 GB, free: 11.73 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0002017/0.893, allocations: 93.42 kB / 1.105 GB, free: 11.63 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/0.8931, allocations: 132.6 kB / 1.105 GB, free: 11.47 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.8932, allocations: 158.4 kB / 1.105 GB, free: 11.31 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/0.8932, allocations: 25.7 kB / 1.105 GB, free: 11.28 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.693e-05/0.8933, allocations: 119.8 kB / 1.105 GB, free: 11.16 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.91e-05/0.8933, allocations: 31.7 kB / 1.105 GB, free: 11.13 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.151e-06/0.8933, allocations: 0 / 1.105 GB, free: 11.13 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.245e-05/0.8934, allocations: 330.8 kB / 1.105 GB, free: 10.8 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.975e-05/0.8935, allocations: 24.38 kB / 1.105 GB, free: 10.77 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.559e-05/0.8936, allocations: 129.5 kB / 1.106 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.345e-05/0.8937, allocations: 43.91 kB / 1.106 GB, free: 10.55 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.8937, allocations: 6.25 kB / 1.106 GB, free: 10.55 MB / 0.7136 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002391/0.8939, allocations: 145.1 kB / 1.106 GB, free: 10.4 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.8939, allocations: 4 kB / 1.106 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.8939, allocations: 4.5 kB / 1.106 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.894, allocations: 12 kB / 1.106 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.8941, allocations: 45.22 kB / 1.106 GB, free: 10.34 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.599e-05/0.8941, allocations: 7.938 kB / 1.106 GB, free: 10.33 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001493/0.8943, allocations: 27.89 kB / 1.106 GB, free: 10.3 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.8943, allocations: 8 kB / 1.106 GB, free: 10.29 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 0.0001202/0.8944, allocations: 117.8 kB / 1.106 GB, free: 10.17 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.05e-05/0.8945, allocations: 23.78 kB / 1.106 GB, free: 10.15 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.907e-05/0.8945, allocations: 13.41 kB / 1.106 GB, free: 10.13 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.8945, allocations: 7.938 kB / 1.106 GB, free: 10.12 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.8945, allocations: 0 / 1.106 GB, free: 10.12 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.8946, allocations: 4 kB / 1.106 GB, free: 10.12 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005563/0.8951, allocations: 468 kB / 1.106 GB, free: 9.617 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.8951, allocations: 0 / 1.106 GB, free: 9.617 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001331/0.8953, allocations: 27.98 kB / 1.106 GB, free: 9.59 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.8953, allocations: 0 / 1.106 GB, free: 9.59 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.8953, allocations: 4 kB / 1.106 GB, free: 9.586 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.8953, allocations: 0 / 1.106 GB, free: 9.586 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/0.8953, allocations: 11.92 kB / 1.106 GB, free: 9.574 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002945/0.8956, allocations: 337.4 kB / 1.107 GB, free: 9.203 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004277/0.8961, allocations: 0.7425 MB / 1.108 GB, free: 8.418 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.327e-05/0.8961, allocations: 90.05 kB / 1.108 GB, free: 8.312 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.977e-05/0.8962, allocations: 2.562 kB / 1.108 GB, free: 8.312 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001878/0.8963, allocations: 23.89 kB / 1.108 GB, free: 8.289 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.247e-05/0.8964, allocations: 19.97 kB / 1.108 GB, free: 8.27 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.8964, allocations: 4 kB / 1.108 GB, free: 8.266 MB / 0.7136 GB Notification: Performance of sort global known variables: time 8.702e-05/0.8965, allocations: 123.4 kB / 1.108 GB, free: 8.145 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0009448/0.8975, allocations: 31.94 kB / 1.108 GB, free: 8.113 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,intWitRes1.trigger,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * 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.0001525/0.8976, allocations: 107 kB / 1.108 GB, free: 8 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001609/0.8978, allocations: 79.88 kB / 1.108 GB, free: 7.922 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.8978, allocations: 0 / 1.108 GB, free: 7.922 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 8.422e-05/0.8979, allocations: 35.92 kB / 1.108 GB, free: 7.887 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004537/0.8984, allocations: 59.94 kB / 1.108 GB, free: 7.836 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000504/0.8989, allocations: 252.3 kB / 1.108 GB, free: 7.555 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003399/0.8992, allocations: 0.7596 MB / 1.109 GB, free: 6.77 MB / 0.7136 GB Notification: Performance of SimCode: time 2.71e-07/0.8992, allocations: 0 / 1.109 GB, free: 6.77 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)