Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.182/1.182, allocations: 249.4 MB / 256.7 MB, free: 15.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009825/0.0009825, allocations: 184.6 kB / 316 MB, free: 7.023 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.327/1.327, allocations: 205.1 MB / 0.5667 GB, free: 23.46 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000812/0.0008121, allocations: 85.27 kB / 0.671 GB, free: 0.6445 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2123/0.2132, allocations: 112.5 MB / 0.7808 GB, free: 60 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4355/0.6487, allocations: 106.3 MB / 0.8847 GB, free: 76.12 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1401/0.7889, allocations: 131.1 MB / 1.013 GB, free: 8.84 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/0.7892, allocations: 71.95 kB / 1.013 GB, free: 8.77 MB / 0.6667 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.00352/0.7928, allocations: 1.208 MB / 1.014 GB, free: 7.52 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.7929, allocations: 8 kB / 1.014 GB, free: 7.512 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.534e-05/0.7929, allocations: 7.906 kB / 1.014 GB, free: 7.504 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.793, allocations: 174.9 kB / 1.014 GB, free: 7.293 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.7931, allocations: 8 kB / 1.014 GB, free: 7.285 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.707e-05/0.7931, allocations: 4 kB / 1.014 GB, free: 7.281 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.343e-05/0.7932, allocations: 31.92 kB / 1.014 GB, free: 7.25 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.664e-05/0.7933, allocations: 57.58 kB / 1.014 GB, free: 7.188 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.7933, allocations: 3.938 kB / 1.014 GB, free: 7.184 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.7933, allocations: 0 / 1.014 GB, free: 7.184 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-06/0.7933, allocations: 4 kB / 1.014 GB, free: 7.18 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004369/0.7938, allocations: 273.3 kB / 1.014 GB, free: 6.875 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001046/0.7939, allocations: 42.58 kB / 1.015 GB, free: 6.824 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.383e-05/0.7939, allocations: 28.97 kB / 1.015 GB, free: 6.793 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.794, allocations: 0 / 1.015 GB, free: 6.793 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.13e-05/0.7941, allocations: 71.23 kB / 1.015 GB, free: 6.711 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=8): time 1.413e-06/0.7941, allocations: 4 kB / 1.015 GB, free: 6.707 MB / 0.6667 GB Notification: Performance of matching and sorting (n=8): time 0.0001833/0.7943, allocations: 69.67 kB / 1.015 GB, free: 6.633 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.694e-05/0.7943, allocations: 59.31 kB / 1.015 GB, free: 6.562 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.781e-05/0.7944, allocations: 105.2 kB / 1.015 GB, free: 6.449 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.7944, allocations: 25.7 kB / 1.015 GB, free: 6.418 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 4.367e-05/0.7945, allocations: 88.14 kB / 1.015 GB, free: 6.328 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.722e-05/0.7945, allocations: 27.64 kB / 1.015 GB, free: 6.301 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-06/0.7945, allocations: 0 / 1.015 GB, free: 6.301 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 9.945e-05/0.7946, allocations: 310.8 kB / 1.015 GB, free: 5.988 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.821e-05/0.7947, allocations: 23.98 kB / 1.015 GB, free: 5.965 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.678e-05/0.7947, allocations: 52.28 kB / 1.015 GB, free: 5.898 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.346e-05/0.7948, allocations: 23.92 kB / 1.015 GB, free: 5.875 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.7948, allocations: 0 / 1.015 GB, free: 5.875 MB / 0.6667 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001405/0.7949, allocations: 85.53 kB / 1.015 GB, free: 5.785 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.795, allocations: 8.938 kB / 1.015 GB, free: 5.777 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.795, allocations: 0 / 1.015 GB, free: 5.777 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.795, allocations: 4 kB / 1.015 GB, free: 5.773 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.7951, allocations: 19.92 kB / 1.015 GB, free: 5.754 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.7951, allocations: 4 kB / 1.015 GB, free: 5.75 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.7952, allocations: 24.02 kB / 1.015 GB, free: 5.727 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.7953, allocations: 4 kB / 1.016 GB, free: 5.723 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * 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 8.334e-05/0.7954, allocations: 107.4 kB / 1.016 GB, free: 5.613 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.673e-05/0.7954, allocations: 11.89 kB / 1.016 GB, free: 5.602 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001588/0.7955, allocations: 85.98 kB / 1.016 GB, free: 5.512 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.7956, allocations: 384 / 1.016 GB, free: 5.512 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.7956, allocations: 0 / 1.016 GB, free: 5.512 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.7956, allocations: 0 / 1.016 GB, free: 5.512 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003589/0.7959, allocations: 333.6 kB / 1.016 GB, free: 5.145 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-06/0.796, allocations: 7.938 kB / 1.016 GB, free: 5.137 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.321e-05/0.796, allocations: 15.98 kB / 1.016 GB, free: 5.121 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.796, allocations: 0 / 1.016 GB, free: 5.121 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.7961, allocations: 3.906 kB / 1.016 GB, free: 5.117 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.7961, allocations: 3.938 kB / 1.016 GB, free: 5.113 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.7961, allocations: 0 / 1.016 GB, free: 5.113 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001558/0.7962, allocations: 175.5 kB / 1.016 GB, free: 4.926 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002762/0.7965, allocations: 0.5389 MB / 1.017 GB, free: 4.367 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 4.036e-05/0.7966, allocations: 85.02 kB / 1.017 GB, free: 4.266 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/0.7966, allocations: 0 / 1.017 GB, free: 4.266 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.7968, allocations: 19.98 kB / 1.017 GB, free: 4.246 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.585e-05/0.7968, allocations: 7.984 kB / 1.017 GB, free: 4.238 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-06/0.7968, allocations: 3.984 kB / 1.017 GB, free: 4.234 MB / 0.6667 GB Notification: Performance of sort global known variables: time 5.272e-05/0.7969, allocations: 91.22 kB / 1.017 GB, free: 4.145 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0008447/0.7977, allocations: 15.91 kB / 1.017 GB, free: 4.129 MB / 0.6667 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 (booPul.y,$whenCondition2,$whenCondition1,booPul.pulseStart,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.7979, allocations: 103.2 kB / 1.017 GB, free: 4.02 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0001151/0.798, allocations: 51.92 kB / 1.017 GB, free: 3.969 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.798, allocations: 0 / 1.017 GB, free: 3.969 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 5.001e-05/0.798, allocations: 23.94 kB / 1.017 GB, free: 3.945 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000212/0.7983, allocations: 12.55 kB / 1.017 GB, free: 3.934 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003008/0.7986, allocations: 101.7 kB / 1.017 GB, free: 3.812 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002625/0.7988, allocations: 0.7118 MB / 1.018 GB, free: 3.074 MB / 0.6667 GB Notification: Performance of SimCode: time 2.3e-07/0.7989, allocations: 0 / 1.018 GB, free: 3.074 MB / 0.6667 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)