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/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009023/0.0009023, allocations: 99.94 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009555/0.0009555, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.197/1.197, allocations: 205.4 MB / 222.1 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.605/1.605, allocations: 292.6 MB / 0.5497 GB, free: 14.59 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007727/0.0007728, allocations: 18.41 kB / 0.6737 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2417, allocations: 116.3 MB / 0.7872 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.0009124/0.2426, allocations: 0.5403 MB / 0.7878 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0001085/0.2428, allocations: 47.78 kB / 0.7878 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.151e-05/0.2428, allocations: 0 / 0.7878 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.832e-05/0.2428, allocations: 3.938 kB / 0.7878 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.794e-05/0.2429, allocations: 7.922 kB / 0.7878 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 3.95e-05/0.243, allocations: 19.98 kB / 0.7878 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.815e-05/0.243, allocations: 47.89 kB / 0.7879 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.2432, allocations: 25.56 kB / 0.7879 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.076e-05/0.2432, allocations: 23.86 kB / 0.7879 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.578e-05/0.2433, allocations: 23.8 kB / 0.7879 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.2433, allocations: 8 kB / 0.788 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.524e-06/0.2433, allocations: 0 / 0.788 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.969e-05/0.2433, allocations: 15.92 kB / 0.788 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.562e-05/0.2434, allocations: 37.64 kB / 0.788 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 6.814e-05/0.2434, allocations: 56.03 kB / 0.7881 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.544e-06/0.2435, allocations: 0 / 0.7881 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.562e-06/0.2435, allocations: 4 kB / 0.7881 GB, free: 11 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.577e-06/0.2435, allocations: 0 / 0.7881 GB, free: 11 MB / 0.6075 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.000359/0.2438, allocations: 379 kB / 0.7884 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.2439, allocations: 12.02 kB / 0.7884 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.712e-05/0.2439, allocations: 38.56 kB / 0.7885 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.428e-05/0.244, allocations: 7.906 kB / 0.7885 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001855/0.2441, allocations: 206.8 kB / 0.7887 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.867e-06/0.2442, allocations: 8 kB / 0.7887 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.216e-05/0.2442, allocations: 4 kB / 0.7887 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001355/0.2443, allocations: 95.55 kB / 0.7888 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.2443, allocations: 8 kB / 0.7888 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.768e-06/0.2444, allocations: 4 kB / 0.7888 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.2444, allocations: 0 / 0.7888 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.932e-05/0.2444, allocations: 35.92 kB / 0.7888 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004761/0.2449, allocations: 444.5 kB / 0.7892 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 5.284e-05/0.245, allocations: 49.3 kB / 0.7893 GB, free: 9.562 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 8.315e-06/0.245, allocations: 0 / 0.7893 GB, free: 9.562 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.737e-05/0.245, allocations: 34.55 kB / 0.7893 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 7.72e-07/0.245, allocations: 0 / 0.7893 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0001561/0.2452, allocations: 57.61 kB / 0.7894 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.72e-05/0.2452, allocations: 81.36 kB / 0.7895 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001366/0.2454, allocations: 167.3 kB / 0.7896 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/0.2454, allocations: 25.7 kB / 0.7896 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.868e-05/0.2455, allocations: 115.9 kB / 0.7898 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.522e-06/0.2455, allocations: 3.984 kB / 0.7898 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.666e-06/0.2455, allocations: 0 / 0.7898 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.865e-05/0.2456, allocations: 322.8 kB / 0.7901 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.653e-05/0.2456, allocations: 7.984 kB / 0.7901 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.146e-05/0.2456, allocations: 29.66 kB / 0.7901 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.331e-05/0.2456, allocations: 8 kB / 0.7901 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.2457, allocations: 0 / 0.7901 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.975e-05/0.2457, allocations: 73.39 kB / 0.7902 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/0.2458, allocations: 4 kB / 0.7902 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.2458, allocations: 0 / 0.7902 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.2458, allocations: 4 kB / 0.7902 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.125e-05/0.2458, allocations: 4.062 kB / 0.7902 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.2459, allocations: 7.984 kB / 0.7902 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.177e-05/0.2459, allocations: 4 kB / 0.7902 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.767e-06/0.2459, allocations: 3.938 kB / 0.7902 GB, free: 8.551 MB / 0.6075 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 () * Number of clocked 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 6.883e-05/0.246, allocations: 113.8 kB / 0.7903 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.931e-05/0.246, allocations: 11.86 kB / 0.7903 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.484e-05/0.2461, allocations: 16.55 kB / 0.7903 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.2461, allocations: 0 / 0.7903 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.2461, allocations: 0 / 0.7903 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2461, allocations: 4 kB / 0.7903 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003525/0.2464, allocations: 490.6 kB / 0.7908 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2464, allocations: 0 / 0.7908 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.228e-05/0.2465, allocations: 4 kB / 0.7908 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2465, allocations: 0 / 0.7908 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-06/0.2465, allocations: 4 kB / 0.7908 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2465, allocations: 0 / 0.7908 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.2465, allocations: 0 / 0.7908 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.161e-05/0.2466, allocations: 99.56 kB / 0.7909 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.461e-05/0.2466, allocations: 89.02 kB / 0.791 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/0.2467, allocations: 4 kB / 0.791 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.3e-05/0.2467, allocations: 0 / 0.791 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.481e-05/0.2467, allocations: 3.984 kB / 0.791 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-06/0.2467, allocations: 8.031 kB / 0.791 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.856e-05/0.2468, allocations: 124 kB / 0.7911 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2468, allocations: 0 / 0.7911 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0001771/0.247, allocations: 12 kB / 0.7911 GB, free: 7.469 MB / 0.6075 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 () * Number of clocked 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.0003249/0.2473, allocations: 0.7056 MB / 0.7918 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 7.486e-05/0.2474, allocations: 16 kB / 0.7918 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.2474, allocations: 0 / 0.7918 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 1.359e-05/0.2474, allocations: 11.88 kB / 0.7919 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001018/0.2475, allocations: 4 kB / 0.7919 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007583/0.2483, allocations: 0.739 MB / 0.7926 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.2485, allocations: 0.7043 MB / 0.7933 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.101e-05/0.2486, allocations: 4.531 kB / 0.7933 GB, free: 5.172 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.955e-05/0.2486, allocations: 27.42 kB / 0.7933 GB, free: 5.148 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.2486, allocations: 0 / 0.7933 GB, free: 5.148 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05047/0.2991, allocations: 1.57 MB / 0.7948 GB, free: 3.707 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001666/0.2993, allocations: 187.2 kB / 0.795 GB, free: 3.465 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.742/2.041, allocations: 0 / 0.795 GB, free: 3.465 MB / 0.6075 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) Environment - environmentSimulation: