Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) 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) 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) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.85/1.85, allocations: 390.4 MB / 397.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 184 kB / 490.8 MB, free: 1.934 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.165/1.165, allocations: 221.3 MB / 0.7863 GB, free: 13.67 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009039/0.0009041, allocations: 95.78 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4473/0.4482, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1872/0.6355, allocations: 143 MB / 1.212 GB, free: 40.02 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5149/1.15, allocations: 151.2 MB / 1.359 GB, free: 17.48 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001777/1.151, allocations: 70.42 kB / 1.359 GB, free: 17.48 MB / 0.823 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.009235/1.16, allocations: 3.643 MB / 1.363 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/1.16, allocations: 9.688 kB / 1.363 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.898e-05/1.16, allocations: 16.97 kB / 1.363 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/1.16, allocations: 228.7 kB / 1.363 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/1.16, allocations: 11.66 kB / 1.363 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.699e-05/1.16, allocations: 7.344 kB / 1.363 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001013/1.16, allocations: 32.25 kB / 1.363 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001613/1.161, allocations: 117.5 kB / 1.363 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/1.161, allocations: 5.969 kB / 1.363 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/1.161, allocations: 1.156 kB / 1.363 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/1.161, allocations: 6.312 kB / 1.363 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009219/1.162, allocations: 0.7038 MB / 1.364 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.481e-05/1.162, allocations: 35.14 kB / 1.364 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.168e-05/1.162, allocations: 21.86 kB / 1.364 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/1.162, allocations: 1.406 kB / 1.364 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001067/1.162, allocations: 108.5 kB / 1.364 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.823e-06/1.162, allocations: 0 / 1.364 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002468/1.162, allocations: 97.61 kB / 1.364 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/1.162, allocations: 136.6 kB / 1.364 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/1.162, allocations: 153.5 kB / 1.365 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.505e-05/1.162, allocations: 36.22 kB / 1.365 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.275e-05/1.162, allocations: 118.6 kB / 1.365 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/1.162, allocations: 35.86 kB / 1.365 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.382e-06/1.162, allocations: 0 / 1.365 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000119/1.163, allocations: 327.8 kB / 1.365 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.913e-05/1.163, allocations: 23.62 kB / 1.365 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.181e-05/1.163, allocations: 130.3 kB / 1.365 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.017e-05/1.163, allocations: 47.47 kB / 1.365 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/1.163, allocations: 1.156 kB / 1.365 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002318/1.163, allocations: 147.1 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/1.163, allocations: 14.91 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/1.163, allocations: 3.469 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/1.163, allocations: 6.219 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/1.163, allocations: 35.25 kB / 1.365 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/1.163, allocations: 10.56 kB / 1.365 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001542/1.163, allocations: 27.81 kB / 1.365 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/1.163, allocations: 13.09 kB / 1.365 GB, free: 30.86 MB / 0.8386 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 8.762e-05/1.164, allocations: 113.8 kB / 1.366 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.884e-05/1.164, allocations: 17.64 kB / 1.366 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.393e-05/1.164, allocations: 20.25 kB / 1.366 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/1.164, allocations: 1.531 kB / 1.366 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/1.164, allocations: 2.672 kB / 1.366 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/1.164, allocations: 5.031 kB / 1.366 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005352/1.164, allocations: 465.9 kB / 1.366 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/1.164, allocations: 0.9688 kB / 1.366 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001357/1.164, allocations: 22.11 kB / 1.366 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.962e-06/1.164, allocations: 3.594 kB / 1.366 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/1.164, allocations: 2.594 kB / 1.366 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/1.164, allocations: 1.625 kB / 1.366 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/1.164, allocations: 1.5 kB / 1.366 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003048/1.165, allocations: 349 kB / 1.366 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005138/1.165, allocations: 0.7479 MB / 1.367 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.013e-05/1.165, allocations: 95.33 kB / 1.367 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/1.165, allocations: 3.688 kB / 1.367 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/1.166, allocations: 20.75 kB / 1.367 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.044e-05/1.166, allocations: 16.33 kB / 1.367 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/1.166, allocations: 5.547 kB / 1.367 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001025/1.166, allocations: 122.2 kB / 1.367 GB, free: 29.22 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0009035/1.167, allocations: 24.67 kB / 1.367 GB, free: 29.22 MB / 0.8386 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.0001437/1.167, allocations: 108.8 kB / 1.368 GB, free: 29.13 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001702/1.167, allocations: 80.62 kB / 1.368 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/1.167, allocations: 0.9688 kB / 1.368 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.586e-05/1.167, allocations: 41.25 kB / 1.368 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004313/1.167, allocations: 63.14 kB / 1.368 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004561/1.168, allocations: 241.2 kB / 1.368 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003415/1.168, allocations: 0.7556 MB / 1.369 GB, free: 28.24 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.168, allocations: 5.25 kB / 1.369 GB, free: 28.23 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat does not exist to compare? outputFormat=mat