Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.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.Integers.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",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.804/1.804, allocations: 387.2 MB / 394.5 MB, free: 13.3 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.0009944/0.0009944, allocations: 188.9 kB / 487 MB, free: 0.7422 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.16/1.16, allocations: 221.3 MB / 0.7819 GB, free: 6.879 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.000829/0.000829, allocations: 96.03 kB / 0.9213 GB, free: 43.73 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2363/0.2372, allocations: 148.5 MB / 1.066 GB, free: 7.508 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.516/0.7532, allocations: 142.3 MB / 1.205 GB, free: 72.88 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1524/0.9057, allocations: 148.9 MB / 1.351 GB, free: 14.31 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001894/0.9059, allocations: 67.97 kB / 1.351 GB, free: 14.25 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.01304/0.919, allocations: 4.686 MB / 1.355 GB, free: 9.535 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.919, allocations: 12 kB / 1.355 GB, free: 9.523 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.382e-05/0.9191, allocations: 19.91 kB / 1.355 GB, free: 9.504 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.9192, allocations: 182.3 kB / 1.356 GB, free: 9.285 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.9192, allocations: 8 kB / 1.356 GB, free: 9.277 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.661e-05/0.9193, allocations: 27.27 kB / 1.356 GB, free: 9.254 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001016/0.9194, allocations: 36 kB / 1.356 GB, free: 9.219 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001252/0.9195, allocations: 77.62 kB / 1.356 GB, free: 9.137 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.9195, allocations: 0 / 1.356 GB, free: 9.137 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.9195, allocations: 0 / 1.356 GB, free: 9.137 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.9196, allocations: 0 / 1.356 GB, free: 9.137 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006354/0.9202, allocations: 472.9 kB / 1.356 GB, free: 8.637 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001837/0.9204, allocations: 67.41 kB / 1.356 GB, free: 8.562 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.605e-05/0.9204, allocations: 28.98 kB / 1.356 GB, free: 8.531 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.067e-05/0.9205, allocations: 4 kB / 1.356 GB, free: 8.527 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001097/0.9206, allocations: 87 kB / 1.356 GB, free: 8.434 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=14): time 1.462e-06/0.9206, allocations: 0 / 1.356 GB, free: 8.434 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14): time 0.000237/0.9208, allocations: 117.5 kB / 1.356 GB, free: 8.312 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.078e-05/0.9209, allocations: 56.03 kB / 1.357 GB, free: 8.246 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.921, allocations: 143.2 kB / 1.357 GB, free: 8.102 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.773e-05/0.921, allocations: 33.7 kB / 1.357 GB, free: 8.062 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.844e-05/0.9211, allocations: 104.5 kB / 1.357 GB, free: 7.957 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.526e-05/0.9211, allocations: 27.77 kB / 1.357 GB, free: 7.93 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.585e-05/0.9212, allocations: 4 kB / 1.357 GB, free: 7.926 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.9213, allocations: 326.8 kB / 1.357 GB, free: 7.598 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.9214, allocations: 79.92 kB / 1.357 GB, free: 7.52 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001907/0.9216, allocations: 134 kB / 1.357 GB, free: 7.367 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000438/0.9221, allocations: 111.8 kB / 1.357 GB, free: 7.258 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.9221, allocations: 4 kB / 1.357 GB, free: 7.254 MB / 0.8542 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007479/0.9228, allocations: 307 kB / 1.358 GB, free: 6.949 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.9229, allocations: 4 kB / 1.358 GB, free: 6.945 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.9229, allocations: 192 / 1.358 GB, free: 6.945 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.9229, allocations: 8 kB / 1.358 GB, free: 6.938 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.403e-05/0.923, allocations: 11.94 kB / 1.358 GB, free: 6.926 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.923, allocations: 7.984 kB / 1.358 GB, free: 6.918 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004922/0.9235, allocations: 124.3 kB / 1.358 GB, free: 6.797 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.03e-05/0.9235, allocations: 15.98 kB / 1.358 GB, free: 6.781 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * 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 9.275e-05/0.9236, allocations: 117.5 kB / 1.358 GB, free: 6.66 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.011e-05/0.9236, allocations: 11.91 kB / 1.358 GB, free: 6.648 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.683e-05/0.9237, allocations: 12.47 kB / 1.358 GB, free: 6.637 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.9237, allocations: 7.938 kB / 1.358 GB, free: 6.629 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.9237, allocations: 7 kB / 1.358 GB, free: 6.625 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.9237, allocations: 3.984 kB / 1.358 GB, free: 6.621 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001483/0.9239, allocations: 178.2 kB / 1.358 GB, free: 6.41 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.9239, allocations: 0 / 1.358 GB, free: 6.41 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.604e-05/0.9239, allocations: 12.98 kB / 1.358 GB, free: 6.398 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.9239, allocations: 0 / 1.358 GB, free: 6.398 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.924, allocations: 7.906 kB / 1.358 GB, free: 6.391 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.924, allocations: 0 / 1.358 GB, free: 6.391 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.924, allocations: 4 kB / 1.358 GB, free: 6.387 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001694/0.9241, allocations: 144.8 kB / 1.358 GB, free: 6.227 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003033/0.9245, allocations: 0.5032 MB / 1.359 GB, free: 5.703 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 4.456e-05/0.9245, allocations: 84.92 kB / 1.359 GB, free: 5.602 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.401e-05/0.9245, allocations: 9.109 kB / 1.359 GB, free: 5.594 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.11e-05/0.9246, allocations: 0 / 1.359 GB, free: 5.594 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.738e-05/0.9246, allocations: 11.98 kB / 1.359 GB, free: 5.582 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.9246, allocations: 8 kB / 1.359 GB, free: 5.574 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5.399e-05/0.9247, allocations: 103.8 kB / 1.359 GB, free: 5.473 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0008013/0.9255, allocations: 51.91 kB / 1.359 GB, free: 5.422 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: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0001677/0.9257, allocations: 123.1 kB / 1.359 GB, free: 5.293 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000346/0.926, allocations: 249 kB / 1.359 GB, free: 5.031 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.926, allocations: 0 / 1.359 GB, free: 5.031 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 6.78e-05/0.9261, allocations: 44.38 kB / 1.36 GB, free: 4.988 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002041/0.9263, allocations: 21.95 kB / 1.36 GB, free: 4.969 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000325/0.9267, allocations: 168.2 kB / 1.36 GB, free: 4.789 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002607/0.9269, allocations: 0.7347 MB / 1.36 GB, free: 4.027 MB / 0.8542 GB Notification: Performance of SimCode: time 2.6e-07/0.9269, allocations: 0 / 1.36 GB, free: 4.027 MB / 0.8542 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat does not exist to compare? outputFormat=mat