Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.1.4-maint.8.1.x/package.mo): time 1.359/1.359, allocations: 289.8 MB / 297.1 MB, free: 6.656 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.0009326/0.0009326, allocations: 179.8 kB / 366.3 MB, free: 1.938 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.098/1.098, allocations: 205.1 MB / 0.6256 GB, free: 5.781 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.0008028/0.000803, allocations: 87.5 kB / 0.7395 GB, free: 39.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2016/0.2025, allocations: 122.4 MB / 0.8591 GB, free: 13.21 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4379/0.6403, allocations: 116.3 MB / 0.9727 GB, free: 68.34 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1427/0.7831, allocations: 138.2 MB / 1.108 GB, free: 10.18 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001798/0.7833, allocations: 71.89 kB / 1.108 GB, free: 10.11 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.003584/0.7869, allocations: 1.229 MB / 1.109 GB, free: 8.848 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.787, allocations: 12 kB / 1.109 GB, free: 8.836 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.716e-05/0.787, allocations: 11.91 kB / 1.109 GB, free: 8.824 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/0.7872, allocations: 172.7 kB / 1.109 GB, free: 8.617 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.7872, allocations: 4 kB / 1.109 GB, free: 8.613 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.752e-05/0.7872, allocations: 4 kB / 1.109 GB, free: 8.609 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.824e-05/0.7873, allocations: 24 kB / 1.109 GB, free: 8.586 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001067/0.7874, allocations: 75.81 kB / 1.109 GB, free: 8.508 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.032e-06/0.7874, allocations: 0 / 1.109 GB, free: 8.508 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.7874, allocations: 0 / 1.109 GB, free: 8.508 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.7875, allocations: 0 / 1.109 GB, free: 8.508 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000433/0.7879, allocations: 297.2 kB / 1.109 GB, free: 8.18 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001061/0.788, allocations: 62.58 kB / 1.11 GB, free: 8.109 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.976e-05/0.7881, allocations: 25.05 kB / 1.11 GB, free: 8.082 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.7881, allocations: 11.92 kB / 1.11 GB, free: 8.07 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.779e-05/0.7882, allocations: 67.41 kB / 1.11 GB, free: 7.992 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 1.372e-06/0.7882, allocations: 2.344 kB / 1.11 GB, free: 7.992 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0001917/0.7884, allocations: 89.52 kB / 1.11 GB, free: 7.898 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.319e-05/0.7885, allocations: 55.41 kB / 1.11 GB, free: 7.832 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.513e-05/0.7885, allocations: 105 kB / 1.11 GB, free: 7.723 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.7886, allocations: 29.7 kB / 1.11 GB, free: 7.688 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.319e-05/0.7886, allocations: 84.28 kB / 1.11 GB, free: 7.598 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.088e-05/0.7886, allocations: 31.62 kB / 1.11 GB, free: 7.566 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-06/0.7886, allocations: 0 / 1.11 GB, free: 7.566 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.639e-05/0.7887, allocations: 318.8 kB / 1.11 GB, free: 7.246 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.414e-05/0.7888, allocations: 20 kB / 1.11 GB, free: 7.227 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.01e-05/0.7889, allocations: 50.56 kB / 1.11 GB, free: 7.168 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001587/0.789, allocations: 35.97 kB / 1.11 GB, free: 7.133 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.789, allocations: 0 / 1.11 GB, free: 7.133 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002356/0.7893, allocations: 121.5 kB / 1.111 GB, free: 7.008 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.7893, allocations: 4 kB / 1.111 GB, free: 7.004 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.7893, allocations: 0 / 1.111 GB, free: 7.004 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.7893, allocations: 4 kB / 1.111 GB, free: 7 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.7895, allocations: 27.98 kB / 1.111 GB, free: 6.973 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.7895, allocations: 7.984 kB / 1.111 GB, free: 6.965 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.822e-05/0.7896, allocations: 15.16 kB / 1.111 GB, free: 6.953 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.7896, allocations: 4 kB / 1.111 GB, free: 6.949 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.248e-05/0.7897, allocations: 114 kB / 1.111 GB, free: 6.832 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.419e-05/0.7897, allocations: 11.89 kB / 1.111 GB, free: 6.82 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001704/0.7899, allocations: 90.64 kB / 1.111 GB, free: 6.727 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.7899, allocations: 4 kB / 1.111 GB, free: 6.723 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.7899, allocations: 0 / 1.111 GB, free: 6.723 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.7899, allocations: 0 / 1.111 GB, free: 6.723 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002934/0.7902, allocations: 332.1 kB / 1.111 GB, free: 6.355 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.7902, allocations: 0 / 1.111 GB, free: 6.355 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.27e-05/0.7903, allocations: 20.23 kB / 1.111 GB, free: 6.336 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.7903, allocations: 3.938 kB / 1.111 GB, free: 6.332 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.7903, allocations: 15.98 kB / 1.111 GB, free: 6.316 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.7903, allocations: 3.906 kB / 1.111 GB, free: 6.312 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.7904, allocations: 0.5625 kB / 1.111 GB, free: 6.312 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001537/0.7905, allocations: 176 kB / 1.111 GB, free: 6.125 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002465/0.7908, allocations: 0.5591 MB / 1.112 GB, free: 5.547 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.412e-05/0.7908, allocations: 85.02 kB / 1.112 GB, free: 5.445 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.069e-05/0.7908, allocations: 0.5625 kB / 1.112 GB, free: 5.445 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.791, allocations: 15.98 kB / 1.112 GB, free: 5.43 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.504e-05/0.791, allocations: 7.984 kB / 1.112 GB, free: 5.422 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.791, allocations: 8 kB / 1.112 GB, free: 5.414 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.931e-05/0.7911, allocations: 79.28 kB / 1.112 GB, free: 5.336 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000766/0.7918, allocations: 27.94 kB / 1.112 GB, free: 5.309 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001592/0.792, allocations: 112.1 kB / 1.112 GB, free: 5.191 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001439/0.7922, allocations: 67.94 kB / 1.112 GB, free: 5.125 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.7922, allocations: 4.125 kB / 1.112 GB, free: 5.121 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.153e-05/0.7922, allocations: 39.92 kB / 1.112 GB, free: 5.082 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001886/0.7924, allocations: 10.53 kB / 1.112 GB, free: 5.074 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002696/0.7927, allocations: 99.61 kB / 1.112 GB, free: 4.957 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002473/0.793, allocations: 0.7036 MB / 1.113 GB, free: 4.227 MB / 0.7136 GB Notification: Performance of SimCode: time 2.3e-07/0.793, allocations: 4 kB / 1.113 GB, free: 4.223 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)