Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.763/1.763, allocations: 387.2 MB / 394.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 190 kB / 487 MB, free: 0.6914 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.15/1.15, allocations: 221.3 MB / 0.7819 GB, free: 6.746 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008302/0.0008303, allocations: 102 kB / 0.9213 GB, free: 43.68 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2311/0.2319, allocations: 148.5 MB / 1.066 GB, free: 7.48 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5111/0.743, allocations: 142.3 MB / 1.205 GB, free: 72.71 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1472/0.8902, allocations: 148.4 MB / 1.35 GB, free: 14.83 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001684/0.8905, allocations: 76.62 kB / 1.35 GB, free: 14.76 MB / 0.8542 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.003277/0.8937, allocations: 1.158 MB / 1.351 GB, free: 13.59 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.058e-05/0.8938, allocations: 8.562 kB / 1.351 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.978e-05/0.8938, allocations: 5.344 kB / 1.351 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.248e-05/0.8939, allocations: 174.6 kB / 1.352 GB, free: 13.37 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.8939, allocations: 7.938 kB / 1.352 GB, free: 13.36 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.894, allocations: 3.984 kB / 1.352 GB, free: 13.36 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.818e-05/0.894, allocations: 25.39 kB / 1.352 GB, free: 13.33 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.111e-05/0.8941, allocations: 45.69 kB / 1.352 GB, free: 13.28 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.261e-06/0.8941, allocations: 0 / 1.352 GB, free: 13.28 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.8941, allocations: 0 / 1.352 GB, free: 13.28 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.8942, allocations: 4 kB / 1.352 GB, free: 13.28 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002783/0.8944, allocations: 241.4 kB / 1.352 GB, free: 13 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 7.492e-05/0.8945, allocations: 46.5 kB / 1.352 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.192e-05/0.8946, allocations: 20.98 kB / 1.352 GB, free: 12.93 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.8946, allocations: 0 / 1.352 GB, free: 12.93 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.103e-05/0.8947, allocations: 64.19 kB / 1.352 GB, free: 12.85 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.8947, allocations: 0 / 1.352 GB, free: 12.85 MB / 0.8542 GB Notification: Performance of matching and sorting (n=6): time 0.0001367/0.8948, allocations: 57.69 kB / 1.352 GB, free: 12.79 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/0.8949, allocations: 55.41 kB / 1.352 GB, free: 12.72 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.038e-05/0.8949, allocations: 98.38 kB / 1.352 GB, free: 12.62 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.8949, allocations: 33.69 kB / 1.352 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 2.871e-05/0.895, allocations: 88.05 kB / 1.352 GB, free: 12.49 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.625e-05/0.895, allocations: 11.75 kB / 1.352 GB, free: 12.48 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-06/0.895, allocations: 0 / 1.352 GB, free: 12.48 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 7.746e-05/0.8951, allocations: 322.8 kB / 1.353 GB, free: 12.16 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.423e-05/0.8951, allocations: 8 kB / 1.353 GB, free: 12.15 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.575e-05/0.8951, allocations: 35.44 kB / 1.353 GB, free: 12.1 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001264/0.8953, allocations: 31.97 kB / 1.353 GB, free: 12.07 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.8953, allocations: 0 / 1.353 GB, free: 12.07 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001849/0.8955, allocations: 89.48 kB / 1.353 GB, free: 11.98 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 8.536e-06/0.8955, allocations: 4 kB / 1.353 GB, free: 11.97 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.8955, allocations: 0 / 1.353 GB, free: 11.97 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/0.8955, allocations: 4 kB / 1.353 GB, free: 11.97 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.8956, allocations: 24.02 kB / 1.353 GB, free: 11.95 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.406e-06/0.8956, allocations: 0 / 1.353 GB, free: 11.95 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.084e-05/0.8957, allocations: 8 kB / 1.353 GB, free: 11.94 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.138e-06/0.8957, allocations: 4 kB / 1.353 GB, free: 11.93 MB / 0.8542 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 5.887e-05/0.8958, allocations: 109 kB / 1.353 GB, free: 11.82 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.213e-05/0.8958, allocations: 7.906 kB / 1.353 GB, free: 11.81 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001281/0.896, allocations: 66.81 kB / 1.353 GB, free: 11.75 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.896, allocations: 7.875 kB / 1.353 GB, free: 11.74 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.896, allocations: 0 / 1.353 GB, free: 11.74 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.896, allocations: 3.984 kB / 1.353 GB, free: 11.73 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002317/0.8962, allocations: 298 kB / 1.353 GB, free: 11.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.8962, allocations: 1.25 kB / 1.353 GB, free: 11.4 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.546e-05/0.8963, allocations: 19.98 kB / 1.353 GB, free: 11.38 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.8963, allocations: 0 / 1.353 GB, free: 11.38 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.8963, allocations: 0 / 1.353 GB, free: 11.38 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.8963, allocations: 3.906 kB / 1.353 GB, free: 11.38 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.8963, allocations: 0 / 1.353 GB, free: 11.38 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001135/0.8965, allocations: 164.3 kB / 1.354 GB, free: 11.2 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001882/0.8967, allocations: 0.5272 MB / 1.354 GB, free: 10.66 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.008e-05/0.8967, allocations: 81.09 kB / 1.354 GB, free: 10.56 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.8967, allocations: 0.8125 kB / 1.354 GB, free: 10.56 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.8968, allocations: 15.98 kB / 1.354 GB, free: 10.54 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.696e-05/0.8969, allocations: 4 kB / 1.354 GB, free: 10.54 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-06/0.8969, allocations: 7.906 kB / 1.354 GB, free: 10.53 MB / 0.8542 GB Notification: Performance of sort global known variables: time 2.955e-05/0.8969, allocations: 84.16 kB / 1.354 GB, free: 10.45 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0007652/0.8977, allocations: 15.98 kB / 1.354 GB, free: 10.43 MB / 0.8542 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.000121/0.8978, allocations: 115.1 kB / 1.354 GB, free: 10.31 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 9.021e-05/0.8979, allocations: 35.98 kB / 1.354 GB, free: 10.27 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.203e-06/0.8979, allocations: 0 / 1.354 GB, free: 10.27 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 3.917e-05/0.898, allocations: 24.12 kB / 1.354 GB, free: 10.25 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001625/0.8981, allocations: 5.312 kB / 1.354 GB, free: 10.25 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002158/0.8984, allocations: 78.42 kB / 1.355 GB, free: 10.15 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002123/0.8986, allocations: 0.6997 MB / 1.355 GB, free: 9.422 MB / 0.8542 GB Notification: Performance of SimCode: time 2.5e-07/0.8986, allocations: 0 / 1.355 GB, free: 9.422 MB / 0.8542 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat does not exist to compare? outputFormat=mat