Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.368/1.368, allocations: 289.8 MB / 297.1 MB, free: 6.672 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.001009/0.001009, allocations: 177.3 kB / 366.3 MB, free: 2.004 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.068/1.068, allocations: 205.1 MB / 0.6256 GB, free: 5.902 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.0008451/0.0008447, allocations: 90.03 kB / 0.7395 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1992/0.2001, allocations: 122.4 MB / 0.8591 GB, free: 13.27 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4367/0.6368, allocations: 116.3 MB / 0.9727 GB, free: 68.67 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.139/0.7758, allocations: 138.1 MB / 1.108 GB, free: 10.31 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001726/0.776, allocations: 79.88 kB / 1.108 GB, free: 10.23 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.006898/0.783, allocations: 2.516 MB / 1.11 GB, free: 7.691 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.783, allocations: 8 kB / 1.11 GB, free: 7.684 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.016e-05/0.7831, allocations: 13.03 kB / 1.11 GB, free: 7.672 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.7832, allocations: 181 kB / 1.11 GB, free: 7.457 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.7832, allocations: 8 kB / 1.11 GB, free: 7.449 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.957e-05/0.7833, allocations: 4 kB / 1.11 GB, free: 7.445 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.265e-05/0.7834, allocations: 16 kB / 1.11 GB, free: 7.43 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001088/0.7835, allocations: 49.62 kB / 1.11 GB, free: 7.375 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.7835, allocations: 0 / 1.11 GB, free: 7.375 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.7835, allocations: 4 kB / 1.11 GB, free: 7.371 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.7835, allocations: 0.75 kB / 1.11 GB, free: 7.371 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003731/0.7839, allocations: 269.3 kB / 1.111 GB, free: 7.07 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 8.182e-05/0.784, allocations: 54.48 kB / 1.111 GB, free: 7.008 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.119e-05/0.784, allocations: 12.98 kB / 1.111 GB, free: 6.992 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.7841, allocations: 4 kB / 1.111 GB, free: 6.988 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.465e-05/0.7841, allocations: 55.41 kB / 1.111 GB, free: 6.922 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 2.755e-06/0.7841, allocations: 4 kB / 1.111 GB, free: 6.918 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0001648/0.7843, allocations: 73.52 kB / 1.111 GB, free: 6.84 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.7844, allocations: 61.09 kB / 1.111 GB, free: 6.77 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.28e-05/0.7844, allocations: 108.9 kB / 1.111 GB, free: 6.656 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.7845, allocations: 25.7 kB / 1.111 GB, free: 6.625 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.894e-05/0.7845, allocations: 92.05 kB / 1.111 GB, free: 6.531 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.7845, allocations: 19.73 kB / 1.111 GB, free: 6.512 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/0.7846, allocations: 0 / 1.111 GB, free: 6.512 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.7847, allocations: 318.8 kB / 1.111 GB, free: 6.191 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.817e-05/0.7847, allocations: 16 kB / 1.111 GB, free: 6.176 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.253e-05/0.7848, allocations: 58 kB / 1.112 GB, free: 6.098 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002966/0.7851, allocations: 51.94 kB / 1.112 GB, free: 6.047 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.7851, allocations: 4 kB / 1.112 GB, free: 6.043 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003516/0.7855, allocations: 117.6 kB / 1.112 GB, free: 5.922 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.7855, allocations: 8.031 kB / 1.112 GB, free: 5.914 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.7855, allocations: 0 / 1.112 GB, free: 5.914 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.853e-05/0.7855, allocations: 7.984 kB / 1.112 GB, free: 5.906 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.7857, allocations: 23.92 kB / 1.112 GB, free: 5.883 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.768e-06/0.7857, allocations: 0 / 1.112 GB, free: 5.883 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.91e-05/0.7858, allocations: 19.91 kB / 1.112 GB, free: 5.863 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.576e-05/0.7858, allocations: 8.547 kB / 1.112 GB, free: 5.855 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 6.962e-05/0.7859, allocations: 105 kB / 1.112 GB, free: 5.746 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.482e-05/0.7859, allocations: 7.906 kB / 1.112 GB, free: 5.738 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.166e-05/0.786, allocations: 8.375 kB / 1.112 GB, free: 5.727 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.786, allocations: 0 / 1.112 GB, free: 5.727 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.786, allocations: 3.938 kB / 1.112 GB, free: 5.723 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.786, allocations: 0.75 kB / 1.112 GB, free: 5.723 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002864/0.7863, allocations: 315 kB / 1.112 GB, free: 5.371 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.7863, allocations: 0 / 1.112 GB, free: 5.371 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.849e-05/0.7864, allocations: 15.92 kB / 1.112 GB, free: 5.355 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.7864, allocations: 7.906 kB / 1.112 GB, free: 5.348 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.7864, allocations: 0 / 1.112 GB, free: 5.348 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.7864, allocations: 3.938 kB / 1.112 GB, free: 5.344 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.7864, allocations: 2.422 kB / 1.112 GB, free: 5.344 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001308/0.7865, allocations: 168.6 kB / 1.112 GB, free: 5.164 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002349/0.7868, allocations: 0.5311 MB / 1.113 GB, free: 4.613 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.234e-05/0.7868, allocations: 85.02 kB / 1.113 GB, free: 4.512 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.778e-05/0.7868, allocations: 4 kB / 1.113 GB, free: 4.508 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.7869, allocations: 15.98 kB / 1.113 GB, free: 4.492 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.063e-05/0.787, allocations: 7.984 kB / 1.113 GB, free: 4.484 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-06/0.787, allocations: 7.906 kB / 1.113 GB, free: 4.477 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.058e-05/0.7871, allocations: 89.69 kB / 1.113 GB, free: 4.391 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0008348/0.7879, allocations: 23.86 kB / 1.113 GB, free: 4.367 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001484/0.788, allocations: 108.8 kB / 1.113 GB, free: 4.254 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001231/0.7882, allocations: 55.92 kB / 1.113 GB, free: 4.199 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.7882, allocations: 0 / 1.113 GB, free: 4.199 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.343e-05/0.7882, allocations: 21.41 kB / 1.113 GB, free: 4.18 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001823/0.7884, allocations: 4 kB / 1.113 GB, free: 4.176 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002619/0.7887, allocations: 99.61 kB / 1.113 GB, free: 4.051 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002993/0.789, allocations: 0.7118 MB / 1.114 GB, free: 3.312 MB / 0.7136 GB Notification: Performance of SimCode: time 2.51e-07/0.789, allocations: 0 / 1.114 GB, free: 3.312 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1)