Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 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_Btu,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_Btu",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_Btu,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_Btu",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.001179/0.001179, allocations: 99.08 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.00135/0.00135, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.406/2.406, allocations: 390.3 MB / 0.6653 GB, free: 3.02 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003044/0.0003045, allocations: 12 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7515/0.7518, allocations: 142.3 MB / 0.9536 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_Btu): time 0.0009061/0.7528, allocations: 0.5141 MB / 0.9541 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001032/0.7529, allocations: 41.25 kB / 0.9541 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.423e-05/0.7529, allocations: 1.344 kB / 0.9541 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.997e-05/0.753, allocations: 5.125 kB / 0.9541 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.64e-05/0.7531, allocations: 4 kB / 0.9541 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 3.461e-05/0.7531, allocations: 20.64 kB / 0.9542 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.893e-05/0.7532, allocations: 39 kB / 0.9542 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.7533, allocations: 30.69 kB / 0.9542 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.612e-05/0.7534, allocations: 20.7 kB / 0.9542 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.101e-05/0.7534, allocations: 20.52 kB / 0.9543 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.297e-05/0.7535, allocations: 5.25 kB / 0.9543 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.244e-06/0.7535, allocations: 2.875 kB / 0.9543 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.29e-05/0.7535, allocations: 5.094 kB / 0.9543 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.034e-05/0.7535, allocations: 37.73 kB / 0.9543 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.365e-05/0.7536, allocations: 56.83 kB / 0.9544 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.275e-06/0.7536, allocations: 0 / 0.9544 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.154e-06/0.7536, allocations: 0 / 0.9544 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.7536, allocations: 0 / 0.9544 GB, free: 7.461 MB / 0.7169 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.0003168/0.7539, allocations: 366.2 kB / 0.9547 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.754, allocations: 9.906 kB / 0.9547 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.318e-05/0.754, allocations: 36.84 kB / 0.9548 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.049e-05/0.7541, allocations: 20.69 kB / 0.9548 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001691/0.7542, allocations: 181.5 kB / 0.955 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.7543, allocations: 6.812 kB / 0.955 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.294e-05/0.7543, allocations: 4.344 kB / 0.955 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001412/0.7544, allocations: 92.89 kB / 0.9551 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.7544, allocations: 0.7188 kB / 0.9551 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.7545, allocations: 8.781 kB / 0.9551 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.7545, allocations: 2.062 kB / 0.9551 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.026e-05/0.7546, allocations: 42.67 kB / 0.9551 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004414/0.755, allocations: 438.8 kB / 0.9555 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.463e-05/0.7551, allocations: 41 kB / 0.9556 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.114e-06/0.7551, allocations: 0 / 0.9556 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.485e-05/0.7551, allocations: 31.88 kB / 0.9556 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 8.72e-07/0.7551, allocations: 1.562 kB / 0.9556 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001693/0.7553, allocations: 57.25 kB / 0.9557 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.885e-05/0.7553, allocations: 86.27 kB / 0.9557 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.7555, allocations: 159.2 kB / 0.9559 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.514e-06/0.7555, allocations: 27.11 kB / 0.9559 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.653e-05/0.7555, allocations: 108.2 kB / 0.956 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 8.446e-06/0.7555, allocations: 8.906 kB / 0.956 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.284e-06/0.7555, allocations: 0 / 0.956 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.599e-05/0.7556, allocations: 321.2 kB / 0.9563 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.503e-05/0.7556, allocations: 6.828 kB / 0.9563 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.799e-05/0.7556, allocations: 22.47 kB / 0.9564 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.324e-05/0.7557, allocations: 8.875 kB / 0.9564 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.7557, allocations: 7.875 kB / 0.9564 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.096e-05/0.7558, allocations: 55.91 kB / 0.9564 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.7558, allocations: 5 kB / 0.9564 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.7558, allocations: 0 / 0.9564 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.7558, allocations: 1.531 kB / 0.9564 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.572e-05/0.7559, allocations: 5.656 kB / 0.9564 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.7559, allocations: 8 kB / 0.9564 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3e-05/0.7559, allocations: 6.469 kB / 0.9565 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-06/0.7559, allocations: 1.469 kB / 0.9565 GB, free: 5.324 MB / 0.7169 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.306e-05/0.756, allocations: 118.2 kB / 0.9566 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.939e-05/0.756, allocations: 10.64 kB / 0.9566 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.134e-05/0.7561, allocations: 7.281 kB / 0.9566 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.7561, allocations: 4.984 kB / 0.9566 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.7561, allocations: 1.312 kB / 0.9566 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.7561, allocations: 4 kB / 0.9566 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002753/0.7564, allocations: 478.4 kB / 0.9571 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.7564, allocations: 0 / 0.9571 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.757e-05/0.7564, allocations: 3.219 kB / 0.9571 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.7564, allocations: 1.562 kB / 0.9571 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.17e-06/0.7564, allocations: 0 / 0.9571 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.7564, allocations: 5.766 kB / 0.9571 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.7564, allocations: 0 / 0.9571 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.28e-05/0.7565, allocations: 96.7 kB / 0.9572 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.62e-05/0.7566, allocations: 87.66 kB / 0.9572 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.7566, allocations: 1.594 kB / 0.9572 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.975e-05/0.7566, allocations: 3.938 kB / 0.9572 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.196e-05/0.7566, allocations: 5.484 kB / 0.9572 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-06/0.7566, allocations: 5.094 kB / 0.9573 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.131e-05/0.7567, allocations: 123.8 kB / 0.9574 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7567, allocations: 0 / 0.9574 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001856/0.7569, allocations: 10.44 kB / 0.9574 GB, free: 4.348 MB / 0.7169 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.0002539/0.7572, allocations: 0.6896 MB / 0.9581 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.315e-05/0.7572, allocations: 18.16 kB / 0.9581 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.7572, allocations: 1.188 kB / 0.9581 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.147e-06/0.7573, allocations: 3.562 kB / 0.9581 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001089/0.7574, allocations: 17.19 kB / 0.9581 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007314/0.7581, allocations: 0.6939 MB / 0.9588 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001184/0.7582, allocations: 0.6968 MB / 0.9594 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.162e-05/0.7583, allocations: 8.391 kB / 0.9595 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.104e-05/0.7583, allocations: 26.81 kB / 0.9595 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.7583, allocations: 0 / 0.9595 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01117/0.7695, allocations: 1.48 MB / 0.9609 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001427/0.7697, allocations: 187.5 kB / 0.9611 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.623/2.392, allocations: 0 / 0.9611 GB, free: 1.359 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_Btu_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_Btu.fmu > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu_res.mat does not exist to compare? outputFormat=mat