Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.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.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Binomial",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.791/1.791, allocations: 390.4 MB / 397.7 MB, free: 10.68 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.001002/0.001002, allocations: 185 kB / 490.8 MB, free: 11.21 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.14/1.14, allocations: 221.4 MB / 0.7863 GB, free: 13.57 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009332/0.0009333, allocations: 99.34 kB / 0.9264 GB, free: 4.52 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2503/0.2512, allocations: 149.1 MB / 1.072 GB, free: 15.48 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5125/0.7638, allocations: 143 MB / 1.212 GB, free: 156.1 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1372/0.9011, allocations: 149.9 MB / 1.358 GB, free: 41.78 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001698/0.9013, allocations: 71.95 kB / 1.358 GB, free: 41.71 MB / 0.8855 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.00367/0.905, allocations: 1.392 MB / 1.359 GB, free: 40.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.002e-05/0.905, allocations: 8 kB / 1.359 GB, free: 40.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.755e-05/0.905, allocations: 8.5 kB / 1.359 GB, free: 40.29 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.088e-05/0.9051, allocations: 163.1 kB / 1.36 GB, free: 40.09 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.9051, allocations: 4.719 kB / 1.36 GB, free: 40.09 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.9051, allocations: 3.906 kB / 1.36 GB, free: 40.08 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.758e-05/0.9052, allocations: 21 kB / 1.36 GB, free: 40.06 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.858e-05/0.9053, allocations: 49.62 kB / 1.36 GB, free: 40.01 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.711e-06/0.9053, allocations: 1.094 kB / 1.36 GB, free: 40.01 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.9053, allocations: 0 / 1.36 GB, free: 40.01 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.9053, allocations: 0 / 1.36 GB, free: 40.01 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002547/0.9056, allocations: 255.5 kB / 1.36 GB, free: 39.72 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001942/0.9058, allocations: 39.06 kB / 1.36 GB, free: 39.68 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.613e-05/0.9058, allocations: 17.42 kB / 1.36 GB, free: 39.66 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002325/0.9061, allocations: 407.7 kB / 1.36 GB, free: 39.17 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.016e-05/0.9061, allocations: 35.09 kB / 1.36 GB, free: 39.12 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.9061, allocations: 0 / 1.36 GB, free: 39.12 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3): time 0.0001513/0.9062, allocations: 50.41 kB / 1.36 GB, free: 39.07 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.635e-05/0.9063, allocations: 55.41 kB / 1.361 GB, free: 39 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.068e-05/0.9063, allocations: 99.77 kB / 1.361 GB, free: 38.9 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.975e-06/0.9063, allocations: 25.7 kB / 1.361 GB, free: 38.87 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 1.784e-05/0.9063, allocations: 92.73 kB / 1.361 GB, free: 38.78 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.217e-05/0.9064, allocations: 8.406 kB / 1.361 GB, free: 38.77 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.497e-06/0.9064, allocations: 0.7812 kB / 1.361 GB, free: 38.77 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 3.431e-05/0.9064, allocations: 310.8 kB / 1.361 GB, free: 38.46 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.807e-05/0.9064, allocations: 9.562 kB / 1.361 GB, free: 38.45 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.592e-05/0.9065, allocations: 11.98 kB / 1.361 GB, free: 38.44 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.27e-05/0.9065, allocations: 10.56 kB / 1.361 GB, free: 38.43 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.9065, allocations: 0.8438 kB / 1.361 GB, free: 38.43 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.246e-05/0.9066, allocations: 57.62 kB / 1.361 GB, free: 38.37 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 8.005e-06/0.9066, allocations: 4 kB / 1.361 GB, free: 38.36 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.9066, allocations: 2.156 kB / 1.361 GB, free: 38.36 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.885e-06/0.9066, allocations: 0 / 1.361 GB, free: 38.36 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.123e-05/0.9067, allocations: 19.89 kB / 1.361 GB, free: 38.34 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.006e-06/0.9067, allocations: 0.5625 kB / 1.361 GB, free: 38.34 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.127e-05/0.9068, allocations: 13.7 kB / 1.361 GB, free: 38.33 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.9068, allocations: 0 / 1.361 GB, free: 38.33 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (bin.y,bin.k) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 3.763e-05/0.9069, allocations: 102.6 kB / 1.361 GB, free: 38.23 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.9069, allocations: 7.906 kB / 1.361 GB, free: 38.22 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001158/0.907, allocations: 59 kB / 1.361 GB, free: 38.16 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.907, allocations: 4.859 kB / 1.361 GB, free: 38.15 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.907, allocations: 0 / 1.361 GB, free: 38.15 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.907, allocations: 0.75 kB / 1.361 GB, free: 38.15 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.971e-05/0.9071, allocations: 142.3 kB / 1.361 GB, free: 37.98 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.9071, allocations: 8.609 kB / 1.361 GB, free: 37.97 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.471e-05/0.9072, allocations: 13 kB / 1.362 GB, free: 37.96 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.9072, allocations: 4.406 kB / 1.362 GB, free: 37.95 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.9072, allocations: 6.109 kB / 1.362 GB, free: 37.95 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.9072, allocations: 3.203 kB / 1.362 GB, free: 37.95 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.9073, allocations: 0 / 1.362 GB, free: 37.95 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.286e-05/0.9074, allocations: 148.6 kB / 1.362 GB, free: 37.79 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001171/0.9075, allocations: 0.5131 MB / 1.362 GB, free: 37.26 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 1.617e-05/0.9075, allocations: 81.92 kB / 1.362 GB, free: 37.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.519e-05/0.9075, allocations: 5.688 kB / 1.362 GB, free: 37.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.606e-05/0.9076, allocations: 10.55 kB / 1.362 GB, free: 37.15 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.736e-05/0.9077, allocations: 12.89 kB / 1.362 GB, free: 37.14 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.9077, allocations: 0 / 1.362 GB, free: 37.14 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.771e-05/0.9077, allocations: 79.88 kB / 1.362 GB, free: 37.06 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007612/0.9085, allocations: 31.84 kB / 1.362 GB, free: 37.03 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (bin.y,bin.k) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001592/0.9086, allocations: 120.5 kB / 1.362 GB, free: 36.9 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 7.792e-05/0.9087, allocations: 24.67 kB / 1.363 GB, free: 36.88 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.9087, allocations: 4 kB / 1.363 GB, free: 36.88 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 2.731e-05/0.9088, allocations: 16.44 kB / 1.363 GB, free: 36.86 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001453/0.9089, allocations: 1.156 kB / 1.363 GB, free: 36.86 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001962/0.9091, allocations: 73.08 kB / 1.363 GB, free: 36.77 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.9093, allocations: 0.6915 MB / 1.363 GB, free: 36.05 MB / 0.8855 GB Notification: Performance of SimCode: time 2.71e-07/0.9093, allocations: 4.156 kB / 1.363 GB, free: 36.05 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Binomial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Binomial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_Binomial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.Binomial_res.mat does not exist to compare? outputFormat=mat