Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",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 10.0.0-master/package.mo): time 1.849/1.849, allocations: 390.4 MB / 397.7 MB, free: 11.24 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009912/0.0009915, allocations: 189.2 kB / 490.8 MB, free: 1.953 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.141/1.141, allocations: 221.4 MB / 0.7863 GB, free: 13.73 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008628/0.0008628, allocations: 91.08 kB / 0.9264 GB, free: 14.27 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4212/0.4221, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1852/0.6074, allocations: 143 MB / 1.212 GB, free: 40.03 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4892/1.097, allocations: 149.2 MB / 1.357 GB, free: 17.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001696/1.097, allocations: 69.33 kB / 1.357 GB, free: 17.18 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.00345/1.1, allocations: 1.146 MB / 1.359 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/1.1, allocations: 9.938 kB / 1.359 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.213e-05/1.1, allocations: 9.906 kB / 1.359 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/1.1, allocations: 170.5 kB / 1.359 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/1.1, allocations: 1.562 kB / 1.359 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.611e-05/1.101, allocations: 6.875 kB / 1.359 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.629e-05/1.101, allocations: 18.53 kB / 1.359 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.374e-05/1.101, allocations: 50.48 kB / 1.359 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/1.101, allocations: 0.7031 kB / 1.359 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/1.101, allocations: 1.516 kB / 1.359 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/1.101, allocations: 3.812 kB / 1.359 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003225/1.101, allocations: 253.3 kB / 1.359 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.351e-05/1.101, allocations: 42.81 kB / 1.359 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.407e-05/1.101, allocations: 20.3 kB / 1.359 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/1.101, allocations: 7.828 kB / 1.359 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.818e-05/1.101, allocations: 57.27 kB / 1.359 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.252e-06/1.101, allocations: 0 / 1.359 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.000157/1.102, allocations: 63.67 kB / 1.359 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.137e-05/1.102, allocations: 57.28 kB / 1.359 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.564e-05/1.102, allocations: 96.66 kB / 1.359 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/1.102, allocations: 25.7 kB / 1.359 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.454e-05/1.102, allocations: 86.78 kB / 1.36 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.628e-05/1.102, allocations: 14.05 kB / 1.36 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-06/1.102, allocations: 1.094 kB / 1.36 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.792e-05/1.102, allocations: 321.4 kB / 1.36 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.753e-05/1.102, allocations: 11.38 kB / 1.36 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.889e-05/1.102, allocations: 41.2 kB / 1.36 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001426/1.102, allocations: 23.69 kB / 1.36 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/1.102, allocations: 0 / 1.36 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001993/1.102, allocations: 81.73 kB / 1.36 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/1.102, allocations: 12.94 kB / 1.36 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/1.102, allocations: 0 / 1.36 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/1.102, allocations: 6.062 kB / 1.36 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/1.102, allocations: 17.7 kB / 1.36 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.309e-06/1.102, allocations: 6.141 kB / 1.36 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.691e-05/1.102, allocations: 12.94 kB / 1.36 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/1.103, allocations: 3.906 kB / 1.36 GB, free: 31.48 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.109e-05/1.103, allocations: 108.4 kB / 1.36 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.213e-05/1.103, allocations: 7.203 kB / 1.36 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001249/1.103, allocations: 69.53 kB / 1.36 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/1.103, allocations: 1.812 kB / 1.36 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/1.103, allocations: 0 / 1.36 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/1.103, allocations: 0 / 1.36 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002207/1.103, allocations: 301.9 kB / 1.361 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/1.103, allocations: 0 / 1.361 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.758e-05/1.103, allocations: 17.09 kB / 1.361 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/1.103, allocations: 0.75 kB / 1.361 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/1.103, allocations: 1.344 kB / 1.361 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/1.103, allocations: 2.016 kB / 1.361 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/1.103, allocations: 3.906 kB / 1.361 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001225/1.103, allocations: 158.4 kB / 1.361 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002381/1.103, allocations: 0.526 MB / 1.361 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.927e-05/1.104, allocations: 82.64 kB / 1.361 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/1.104, allocations: 6.094 kB / 1.361 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/1.104, allocations: 16.39 kB / 1.361 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.296e-05/1.104, allocations: 9.078 kB / 1.361 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.747e-06/1.104, allocations: 0.8125 kB / 1.361 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.465e-05/1.104, allocations: 85.41 kB / 1.361 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007887/1.105, allocations: 21.55 kB / 1.361 GB, free: 30.23 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001172/1.105, allocations: 104.7 kB / 1.362 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 9.79e-05/1.105, allocations: 44.14 kB / 1.362 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/1.105, allocations: 0 / 1.362 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.302e-05/1.105, allocations: 16.19 kB / 1.362 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001727/1.105, allocations: 9.219 kB / 1.362 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002332/1.105, allocations: 81.19 kB / 1.362 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002258/1.105, allocations: 0.6976 MB / 1.362 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/1.105, allocations: 4.188 kB / 1.362 GB, free: 29.34 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat does not exist to compare? outputFormat=mat