Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.357/1.357, allocations: 285.5 MB / 292.8 MB, free: 9.758 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.0009543/0.0009543, allocations: 185.2 kB / 361.1 MB, free: 388 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.034/1.034, allocations: 205.1 MB / 0.6195 GB, free: 2.895 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007432/0.0007432, allocations: 89.91 kB / 0.7326 GB, free: 1.129 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.353/0.3538, allocations: 121.5 MB / 0.8512 GB, free: 151.5 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.4967, allocations: 115.3 MB / 0.9638 GB, free: 56.29 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.415/0.9118, allocations: 137.6 MB / 1.098 GB, free: 44.4 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001605/0.912, allocations: 69 kB / 1.098 GB, free: 44.4 MB / 0.7136 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.005557/0.9176, allocations: 2.357 MB / 1.101 GB, free: 43.91 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.946e-05/0.9176, allocations: 8.281 kB / 1.101 GB, free: 43.91 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.011e-05/0.9176, allocations: 14.06 kB / 1.101 GB, free: 43.9 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.573e-05/0.9177, allocations: 176.9 kB / 1.101 GB, free: 43.7 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.9177, allocations: 3.656 kB / 1.101 GB, free: 43.7 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.216e-05/0.9178, allocations: 7.406 kB / 1.101 GB, free: 43.7 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.093e-05/0.9178, allocations: 18.44 kB / 1.101 GB, free: 43.7 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.083e-05/0.9179, allocations: 50.83 kB / 1.101 GB, free: 43.66 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-06/0.9179, allocations: 0 / 1.101 GB, free: 43.66 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.9179, allocations: 3.797 kB / 1.101 GB, free: 43.66 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.918, allocations: 7.875 kB / 1.101 GB, free: 43.66 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003218/0.9183, allocations: 312.7 kB / 1.101 GB, free: 43.42 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.653e-05/0.9184, allocations: 41.83 kB / 1.101 GB, free: 43.39 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.977e-05/0.9184, allocations: 18.89 kB / 1.101 GB, free: 43.39 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.9184, allocations: 4 kB / 1.101 GB, free: 43.38 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.302e-05/0.9185, allocations: 74.33 kB / 1.101 GB, free: 43.33 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=8): time 1.733e-06/0.9185, allocations: 0 / 1.101 GB, free: 43.33 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8): time 0.0001513/0.9187, allocations: 83.52 kB / 1.101 GB, free: 43.29 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.667e-05/0.9187, allocations: 54.55 kB / 1.101 GB, free: 43.23 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.204e-05/0.9187, allocations: 107.4 kB / 1.102 GB, free: 43.14 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/0.9188, allocations: 29.33 kB / 1.102 GB, free: 43.11 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 2.953e-05/0.9188, allocations: 98.55 kB / 1.102 GB, free: 43.01 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.692e-05/0.9188, allocations: 18.55 kB / 1.102 GB, free: 43 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.156e-05/0.9188, allocations: 0 / 1.102 GB, free: 43 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 3.647e-05/0.9189, allocations: 322 kB / 1.102 GB, free: 42.69 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.747e-05/0.919, allocations: 39.98 kB / 1.102 GB, free: 42.68 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.128e-05/0.919, allocations: 74.61 kB / 1.102 GB, free: 42.63 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001768/0.9192, allocations: 48.58 kB / 1.102 GB, free: 42.63 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.9192, allocations: 0 / 1.102 GB, free: 42.63 MB / 0.7136 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002916/0.9195, allocations: 143.7 kB / 1.102 GB, free: 42.59 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 8.336e-06/0.9195, allocations: 11.84 kB / 1.102 GB, free: 42.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.9195, allocations: 4.5 kB / 1.102 GB, free: 42.58 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.738e-06/0.9196, allocations: 3.875 kB / 1.102 GB, free: 42.58 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.506e-05/0.9197, allocations: 22.97 kB / 1.102 GB, free: 42.58 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.9197, allocations: 3.875 kB / 1.102 GB, free: 42.58 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002015/0.9199, allocations: 52.59 kB / 1.102 GB, free: 42.57 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.813e-05/0.9199, allocations: 3.875 kB / 1.102 GB, free: 42.57 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 5.212e-05/0.92, allocations: 127.8 kB / 1.102 GB, free: 42.46 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.231e-05/0.92, allocations: 10.94 kB / 1.102 GB, free: 42.45 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.9201, allocations: 78.64 kB / 1.103 GB, free: 42.42 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.9201, allocations: 3.984 kB / 1.103 GB, free: 42.42 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.9201, allocations: 0 / 1.103 GB, free: 42.42 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.9201, allocations: 0 / 1.103 GB, free: 42.42 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001497/0.9203, allocations: 318.7 kB / 1.103 GB, free: 42.14 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.9203, allocations: 0 / 1.103 GB, free: 42.14 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.9e-05/0.9204, allocations: 8.594 kB / 1.103 GB, free: 42.14 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.9204, allocations: 11.33 kB / 1.103 GB, free: 42.14 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.9204, allocations: 0 / 1.103 GB, free: 42.14 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.9204, allocations: 4.688 kB / 1.103 GB, free: 42.14 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.9204, allocations: 0 / 1.103 GB, free: 42.14 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.515e-05/0.9205, allocations: 173.8 kB / 1.103 GB, free: 42 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001689/0.9207, allocations: 0.5481 MB / 1.104 GB, free: 57.49 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.989e-05/0.9207, allocations: 77.11 kB / 1.104 GB, free: 57.39 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.9207, allocations: 7.781 kB / 1.104 GB, free: 57.39 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.557e-05/0.9208, allocations: 18.62 kB / 1.104 GB, free: 57.38 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.97e-05/0.9209, allocations: 3.797 kB / 1.104 GB, free: 57.38 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.9209, allocations: 6.438 kB / 1.104 GB, free: 57.38 MB / 0.7292 GB Notification: Performance of sort global known variables: time 3.486e-05/0.9209, allocations: 86.03 kB / 1.104 GB, free: 57.31 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0007693/0.9217, allocations: 26.59 kB / 1.104 GB, free: 57.31 MB / 0.7292 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.000112/0.9218, allocations: 113.9 kB / 1.104 GB, free: 57.21 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001602/0.922, allocations: 114 kB / 1.104 GB, free: 57.17 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.922, allocations: 0 / 1.104 GB, free: 57.17 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 5.401e-05/0.922, allocations: 32.36 kB / 1.104 GB, free: 57.16 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001783/0.9222, allocations: 11.53 kB / 1.104 GB, free: 57.16 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002144/0.9224, allocations: 101.8 kB / 1.104 GB, free: 57.09 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.9227, allocations: 0.706 MB / 1.105 GB, free: 56.38 MB / 0.7292 GB Notification: Performance of SimCode: time 2.4e-07/0.9227, allocations: 3.875 kB / 1.105 GB, free: 56.38 MB / 0.7292 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)