Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_UnitConversions_Validation_To_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 8.1.4-maint.8.1.x/package.mo): time 1.415/1.415, allocations: 289.8 MB / 297.1 MB, free: 6.719 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009893/0.0009894, allocations: 177.3 kB / 366.3 MB, free: 2.016 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.054/1.054, allocations: 205.1 MB / 0.6256 GB, free: 5.848 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009017/0.0009017, allocations: 98.52 kB / 0.7396 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2135/0.2144, allocations: 122.4 MB / 0.8591 GB, free: 13.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4696/0.684, allocations: 116.3 MB / 0.9727 GB, free: 68.26 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.143/0.827, allocations: 137.7 MB / 1.107 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002427/0.8273, allocations: 71.88 kB / 1.107 GB, free: 10.68 MB / 0.7136 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.002947/0.8303, allocations: 1.203 MB / 1.108 GB, free: 9.449 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.8304, allocations: 8 kB / 1.108 GB, free: 9.441 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.496e-05/0.8304, allocations: 16.31 kB / 1.108 GB, free: 9.426 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001788/0.8306, allocations: 182 kB / 1.109 GB, free: 9.211 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.8306, allocations: 4 kB / 1.109 GB, free: 9.207 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.385e-05/0.8306, allocations: 4 kB / 1.109 GB, free: 9.203 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001062/0.8308, allocations: 32.75 kB / 1.109 GB, free: 9.172 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/0.8309, allocations: 83.3 kB / 1.109 GB, free: 9.078 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.8309, allocations: 0 / 1.109 GB, free: 9.078 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.8309, allocations: 0 / 1.109 GB, free: 9.078 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.831, allocations: 4 kB / 1.109 GB, free: 9.074 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005083/0.8315, allocations: 421.1 kB / 1.109 GB, free: 8.621 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 4.377e-05/0.8315, allocations: 37.16 kB / 1.109 GB, free: 8.566 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.694e-05/0.8316, allocations: 17.84 kB / 1.109 GB, free: 8.543 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 7.764e-06/0.8316, allocations: 1.312 kB / 1.109 GB, free: 8.543 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.8316, allocations: 38.59 kB / 1.109 GB, free: 8.496 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.8316, allocations: 0 / 1.109 GB, free: 8.496 MB / 0.7136 GB Notification: Performance of matching and sorting (n=2): time 0.000149/0.8318, allocations: 45.64 kB / 1.109 GB, free: 8.445 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.8318, allocations: 77.11 kB / 1.109 GB, free: 8.352 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.8319, allocations: 130.6 kB / 1.109 GB, free: 8.219 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.081e-05/0.8319, allocations: 25.7 kB / 1.109 GB, free: 8.188 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.223e-05/0.832, allocations: 112 kB / 1.11 GB, free: 8.074 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 5.53e-06/0.832, allocations: 7.844 kB / 1.11 GB, free: 8.066 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-06/0.832, allocations: 0 / 1.11 GB, free: 8.066 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.383e-05/0.8321, allocations: 321.4 kB / 1.11 GB, free: 7.746 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.681e-05/0.8321, allocations: 12.03 kB / 1.11 GB, free: 7.734 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.983e-05/0.8322, allocations: 17.72 kB / 1.11 GB, free: 7.711 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.155e-05/0.8322, allocations: 7.984 kB / 1.11 GB, free: 7.703 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.8322, allocations: 1.594 kB / 1.11 GB, free: 7.703 MB / 0.7136 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.086e-05/0.8323, allocations: 57.61 kB / 1.11 GB, free: 7.641 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 8.736e-06/0.8323, allocations: 4 kB / 1.11 GB, free: 7.637 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.8323, allocations: 0 / 1.11 GB, free: 7.637 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.797e-06/0.8323, allocations: 4.219 kB / 1.11 GB, free: 7.633 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.362e-05/0.8324, allocations: 15.98 kB / 1.11 GB, free: 7.617 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.8324, allocations: 3.938 kB / 1.11 GB, free: 7.613 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.88e-05/0.8324, allocations: 7.844 kB / 1.11 GB, free: 7.605 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.8325, allocations: 4 kB / 1.11 GB, free: 7.602 MB / 0.7136 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 5.745e-05/0.8325, allocations: 101 kB / 1.11 GB, free: 7.496 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.465e-05/0.8326, allocations: 8 kB / 1.11 GB, free: 7.488 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.885e-05/0.8326, allocations: 11.58 kB / 1.11 GB, free: 7.477 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.8326, allocations: 0 / 1.11 GB, free: 7.477 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.8326, allocations: 4 kB / 1.11 GB, free: 7.473 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.8326, allocations: 4 kB / 1.11 GB, free: 7.469 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000341/0.833, allocations: 447.3 kB / 1.111 GB, free: 6.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.833, allocations: 0 / 1.111 GB, free: 6.98 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.54e-05/0.833, allocations: 9.484 kB / 1.111 GB, free: 6.973 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.833, allocations: 0 / 1.111 GB, free: 6.973 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.2e-06/0.833, allocations: 0 / 1.111 GB, free: 6.973 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.833, allocations: 0 / 1.111 GB, free: 6.973 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.833, allocations: 12.06 kB / 1.111 GB, free: 6.961 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.979e-05/0.8331, allocations: 91.47 kB / 1.111 GB, free: 6.844 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001714/0.8333, allocations: 468 kB / 1.111 GB, free: 6.355 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.299e-05/0.8334, allocations: 89 kB / 1.111 GB, free: 6.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.8334, allocations: 0 / 1.111 GB, free: 6.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.303e-05/0.8334, allocations: 0 / 1.111 GB, free: 6.25 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.331e-05/0.8334, allocations: 11.91 kB / 1.111 GB, free: 6.238 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-06/0.8334, allocations: 0 / 1.111 GB, free: 6.238 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.448e-05/0.8335, allocations: 103.3 kB / 1.111 GB, free: 6.137 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000758/0.8343, allocations: 15.94 kB / 1.111 GB, free: 6.121 MB / 0.7136 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 0.0001098/0.8344, allocations: 95.25 kB / 1.111 GB, free: 6.02 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 6.48e-05/0.8344, allocations: 19.94 kB / 1.111 GB, free: 6 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.183e-06/0.8345, allocations: 1.594 kB / 1.111 GB, free: 6 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 1.225e-05/0.8345, allocations: 8 kB / 1.111 GB, free: 5.992 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.315e-05/0.8346, allocations: 0 / 1.111 GB, free: 5.992 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002347/0.8348, allocations: 112.5 kB / 1.112 GB, free: 5.855 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002246/0.835, allocations: 0.7113 MB / 1.112 GB, free: 5.117 MB / 0.7136 GB Notification: Performance of SimCode: time 2.21e-07/0.835, allocations: 0 / 1.112 GB, free: 5.117 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_8_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1)