Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.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.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",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.735/1.735, allocations: 390.4 MB / 397.7 MB, free: 10.64 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.001003/0.001003, allocations: 181.1 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.088/1.088, allocations: 221.4 MB / 0.7863 GB, free: 13.56 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.0008835/0.0008835, allocations: 98.88 kB / 0.9264 GB, free: 4.508 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2316/0.2325, allocations: 149.1 MB / 1.072 GB, free: 15.46 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5221/0.7546, allocations: 143 MB / 1.212 GB, free: 156 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1363/0.8909, allocations: 148.8 MB / 1.357 GB, free: 42.79 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001658/0.8911, allocations: 59.97 kB / 1.357 GB, free: 42.73 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.002105/0.8932, allocations: 1.137 MB / 1.358 GB, free: 41.58 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.8933, allocations: 8 kB / 1.358 GB, free: 41.57 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.077e-05/0.8933, allocations: 8.656 kB / 1.358 GB, free: 41.56 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.8934, allocations: 182.8 kB / 1.358 GB, free: 41.34 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.8934, allocations: 0.5 kB / 1.358 GB, free: 41.34 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.038e-05/0.8935, allocations: 5.25 kB / 1.358 GB, free: 41.34 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.557e-05/0.8935, allocations: 32 kB / 1.358 GB, free: 41.31 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.421e-05/0.8936, allocations: 87.84 kB / 1.358 GB, free: 41.21 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.8937, allocations: 1.031 kB / 1.358 GB, free: 41.21 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.398e-06/0.8937, allocations: 0 / 1.358 GB, free: 41.21 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.8937, allocations: 0 / 1.358 GB, free: 41.21 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003636/0.8941, allocations: 413.6 kB / 1.359 GB, free: 40.77 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 3.625e-05/0.8941, allocations: 41.88 kB / 1.359 GB, free: 40.71 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.848e-05/0.8941, allocations: 19.12 kB / 1.359 GB, free: 40.69 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 6.833e-06/0.8942, allocations: 1.188 kB / 1.359 GB, free: 40.69 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.49e-05/0.8942, allocations: 35.28 kB / 1.359 GB, free: 40.64 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=2): time 1.252e-06/0.8942, allocations: 0 / 1.359 GB, free: 40.64 MB / 0.8855 GB Notification: Performance of matching and sorting (n=2): time 0.0001322/0.8943, allocations: 45.33 kB / 1.359 GB, free: 40.6 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.82e-05/0.8943, allocations: 78.95 kB / 1.359 GB, free: 40.5 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.857e-05/0.8944, allocations: 121 kB / 1.359 GB, free: 40.38 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.881e-06/0.8944, allocations: 25.7 kB / 1.359 GB, free: 40.35 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 3.029e-05/0.8945, allocations: 109.1 kB / 1.359 GB, free: 40.23 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.639e-06/0.8945, allocations: 3.906 kB / 1.359 GB, free: 40.23 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-06/0.8945, allocations: 0 / 1.359 GB, free: 40.23 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 4.019e-05/0.8945, allocations: 323.8 kB / 1.36 GB, free: 39.91 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.451e-05/0.8945, allocations: 5.031 kB / 1.36 GB, free: 39.9 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.539e-05/0.8946, allocations: 17.72 kB / 1.36 GB, free: 39.88 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.873e-05/0.8946, allocations: 9.219 kB / 1.36 GB, free: 39.87 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.8946, allocations: 0 / 1.36 GB, free: 39.87 MB / 0.8855 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.294e-05/0.8947, allocations: 58.22 kB / 1.36 GB, free: 39.81 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.965e-06/0.8947, allocations: 4.656 kB / 1.36 GB, free: 39.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.496e-06/0.8947, allocations: 0.8125 kB / 1.36 GB, free: 39.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.766e-06/0.8947, allocations: 0 / 1.36 GB, free: 39.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.377e-05/0.8948, allocations: 8 kB / 1.36 GB, free: 39.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.996e-06/0.8948, allocations: 0.625 kB / 1.36 GB, free: 39.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.248e-05/0.8948, allocations: 4.625 kB / 1.36 GB, free: 39.79 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.849e-06/0.8948, allocations: 5.938 kB / 1.36 GB, free: 39.79 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.388e-05/0.8948, allocations: 106.5 kB / 1.36 GB, free: 39.68 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.158e-05/0.8949, allocations: 11.89 kB / 1.36 GB, free: 39.67 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.867e-05/0.8949, allocations: 7.469 kB / 1.36 GB, free: 39.66 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.8949, allocations: 0.5 kB / 1.36 GB, free: 39.66 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.8949, allocations: 4.531 kB / 1.36 GB, free: 39.66 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.8949, allocations: 0 / 1.36 GB, free: 39.66 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002071/0.8951, allocations: 441.4 kB / 1.36 GB, free: 39.18 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.8952, allocations: 3.984 kB / 1.36 GB, free: 39.18 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.72e-05/0.8952, allocations: 4.781 kB / 1.36 GB, free: 39.17 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.8952, allocations: 0 / 1.36 GB, free: 39.17 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.379e-06/0.8952, allocations: 0.6562 kB / 1.36 GB, free: 39.17 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.8952, allocations: 4 kB / 1.36 GB, free: 39.17 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.8952, allocations: 5.281 kB / 1.36 GB, free: 39.16 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 4.946e-05/0.8953, allocations: 83.47 kB / 1.36 GB, free: 39.06 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 7.424e-05/0.8953, allocations: 472.4 kB / 1.361 GB, free: 38.57 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 2.24e-05/0.8954, allocations: 89.08 kB / 1.361 GB, free: 38.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.8954, allocations: 7.188 kB / 1.361 GB, free: 38.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.701e-05/0.8954, allocations: 0 / 1.361 GB, free: 38.46 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.927e-06/0.8954, allocations: 8.969 kB / 1.361 GB, free: 38.45 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-06/0.8954, allocations: 0 / 1.361 GB, free: 38.45 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.28e-05/0.8955, allocations: 103.7 kB / 1.361 GB, free: 38.36 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007016/0.8962, allocations: 12.47 kB / 1.361 GB, free: 38.34 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 8.589e-05/0.8963, allocations: 96.12 kB / 1.361 GB, free: 38.24 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 5.18e-05/0.8963, allocations: 16.81 kB / 1.361 GB, free: 38.23 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.8963, allocations: 0 / 1.361 GB, free: 38.23 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 8.375e-06/0.8963, allocations: 8.656 kB / 1.361 GB, free: 38.22 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.82e-05/0.8964, allocations: 5.031 kB / 1.361 GB, free: 38.21 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001793/0.8966, allocations: 100.9 kB / 1.361 GB, free: 38.09 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.8967, allocations: 0.7091 MB / 1.362 GB, free: 37.36 MB / 0.8855 GB Notification: Performance of SimCode: time 2.51e-07/0.8967, allocations: 0 / 1.362 GB, free: 37.36 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_ton.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat does not exist to compare? outputFormat=mat