Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",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.0/package.mo): time 2.131/2.131, allocations: 284.8 MB / 292.1 MB, free: 10.75 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.001596/0.001595, allocations: 181.3 kB / 360.3 MB, free: 7.52 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.656/1.656, allocations: 205.1 MB / 0.6187 GB, free: 13.2 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.001235/0.001234, allocations: 81.53 kB / 0.7317 GB, free: 45.11 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2479/0.2492, allocations: 121.4 MB / 0.8502 GB, free: 3.883 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5606/0.8098, allocations: 115.2 MB / 0.9628 GB, free: 78.47 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2051/1.015, allocations: 137.5 MB / 1.097 GB, free: 3.336 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/1.015, allocations: 72.56 kB / 1.097 GB, free: 3.266 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.01159/1.027, allocations: 2.349 MB / 1.099 GB, free: 0.9375 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/1.027, allocations: 8 kB / 1.099 GB, free: 0.9297 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.344e-05/1.027, allocations: 21.58 kB / 1.099 GB, free: 0.9102 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001513/1.027, allocations: 170.9 kB / 1.1 GB, free: 0.7031 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/1.027, allocations: 0 / 1.1 GB, free: 0.7031 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.737e-05/1.027, allocations: 8 kB / 1.1 GB, free: 0.6953 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001162/1.027, allocations: 23.94 kB / 1.1 GB, free: 0.6719 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001598/1.028, allocations: 58.19 kB / 1.1 GB, free: 0.6094 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/1.028, allocations: 0 / 1.1 GB, free: 0.6094 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/1.028, allocations: 0 / 1.1 GB, free: 0.6094 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/1.028, allocations: 0.6562 kB / 1.1 GB, free: 0.6094 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007979/1.029, allocations: 321.1 kB / 1.1 GB, free: 264 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001209/1.029, allocations: 42.58 kB / 1.1 GB, free: 212 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.216e-05/1.029, allocations: 20.98 kB / 1.1 GB, free: 188 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/1.029, allocations: 0 / 1.1 GB, free: 188 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001435/1.029, allocations: 71.39 kB / 1.1 GB, free: 104 kB / 0.698 GB Notification: Performance of pre-optimization done (n=8): time 3.877e-06/1.029, allocations: 0 / 1.1 GB, free: 104 kB / 0.698 GB Notification: Performance of matching and sorting (n=8): time 0.0003118/1.029, allocations: 82.12 kB / 1.1 GB, free: 16 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/1.029, allocations: 55.41 kB / 1.1 GB, free: 15.95 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/1.029, allocations: 107.4 kB / 1.1 GB, free: 15.84 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.84e-05/1.029, allocations: 29.7 kB / 1.1 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.308e-05/1.03, allocations: 95.7 kB / 1.1 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.58e-05/1.03, allocations: 24.44 kB / 1.1 GB, free: 15.69 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-05/1.03, allocations: 0 / 1.1 GB, free: 15.69 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001427/1.03, allocations: 326.8 kB / 1.101 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/1.03, allocations: 35.98 kB / 1.101 GB, free: 15.32 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001736/1.03, allocations: 76.02 kB / 1.101 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004791/1.031, allocations: 50.22 kB / 1.101 GB, free: 15.19 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/1.031, allocations: 0 / 1.101 GB, free: 15.19 MB / 0.7136 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00101/1.032, allocations: 156.1 kB / 1.101 GB, free: 15.03 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/1.032, allocations: 5.25 kB / 1.101 GB, free: 15.03 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/1.032, allocations: 0 / 1.101 GB, free: 15.03 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.502e-05/1.032, allocations: 4.156 kB / 1.101 GB, free: 15.02 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002655/1.032, allocations: 19.98 kB / 1.101 GB, free: 15 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/1.032, allocations: 7.938 kB / 1.101 GB, free: 15 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007057/1.033, allocations: 51.86 kB / 1.101 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.62e-05/1.033, allocations: 12 kB / 1.101 GB, free: 14.93 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001859/1.033, allocations: 120.7 kB / 1.101 GB, free: 14.81 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.708e-05/1.033, allocations: 9.125 kB / 1.101 GB, free: 14.8 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003764/1.034, allocations: 88.8 kB / 1.101 GB, free: 14.71 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/1.034, allocations: 0 / 1.101 GB, free: 14.71 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/1.034, allocations: 0 / 1.101 GB, free: 14.71 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/1.034, allocations: 0 / 1.101 GB, free: 14.71 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006336/1.034, allocations: 307.1 kB / 1.102 GB, free: 14.37 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/1.034, allocations: 0 / 1.102 GB, free: 14.37 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000256/1.035, allocations: 15.98 kB / 1.102 GB, free: 14.36 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/1.035, allocations: 0 / 1.102 GB, free: 14.36 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.866e-05/1.035, allocations: 2.125 kB / 1.102 GB, free: 14.36 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/1.035, allocations: 7.938 kB / 1.102 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/1.035, allocations: 0 / 1.102 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004299/1.035, allocations: 175.4 kB / 1.102 GB, free: 14.16 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005857/1.036, allocations: 0.5505 MB / 1.102 GB, free: 13.59 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.932e-05/1.036, allocations: 85.02 kB / 1.102 GB, free: 13.49 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/1.036, allocations: 0 / 1.102 GB, free: 13.49 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002792/1.036, allocations: 11.98 kB / 1.103 GB, free: 13.48 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.043e-05/1.036, allocations: 8.641 kB / 1.103 GB, free: 13.47 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/1.036, allocations: 4 kB / 1.103 GB, free: 13.46 MB / 0.7136 GB Notification: Performance of sort global known variables: time 9.31e-05/1.036, allocations: 87.28 kB / 1.103 GB, free: 13.38 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.002881/1.039, allocations: 28.92 kB / 1.103 GB, free: 13.35 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003664/1.04, allocations: 111.1 kB / 1.103 GB, free: 13.23 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0005489/1.04, allocations: 105.6 kB / 1.103 GB, free: 13.12 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/1.04, allocations: 320 / 1.103 GB, free: 13.12 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001574/1.041, allocations: 32 kB / 1.103 GB, free: 13.09 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006676/1.041, allocations: 15.62 kB / 1.103 GB, free: 13.08 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006201/1.042, allocations: 104.3 kB / 1.103 GB, free: 12.95 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004761/1.042, allocations: 0.7074 MB / 1.104 GB, free: 12.22 MB / 0.7136 GB Notification: Performance of SimCode: time 1.543e-06/1.042, allocations: 0 / 1.104 GB, free: 12.22 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)