Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.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.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_9_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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.414/2.414, allocations: 390.3 MB / 405.3 MB, free: 13.43 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 187.2 kB / 498.1 MB, free: 5.676 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.48/1.48, allocations: 223.2 MB / 0.7948 GB, free: 18.86 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009227/0.0009224, allocations: 99.83 kB / 0.9346 GB, free: 7.148 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004134/0.0004135, allocations: 9.812 kB / 1.084 GB, free: 212.5 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3382/0.3386, allocations: 142.4 MB / 1.223 GB, free: 89.46 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2254/0.5641, allocations: 148.8 MB / 1.368 GB, free: 4.469 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002854/0.5644, allocations: 67.95 kB / 1.368 GB, free: 4.402 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.002508/0.567, allocations: 1.085 MB / 1.369 GB, free: 3.316 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.294e-06/0.567, allocations: 0 / 1.369 GB, free: 3.316 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.298e-06/0.567, allocations: 4 kB / 1.369 GB, free: 3.312 MB / 0.8698 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.0003909/0.5674, allocations: 375.1 kB / 1.37 GB, free: 2.898 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.5675, allocations: 8.031 kB / 1.37 GB, free: 2.891 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.409e-05/0.5675, allocations: 38.56 kB / 1.37 GB, free: 2.844 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.198e-05/0.5676, allocations: 11.86 kB / 1.37 GB, free: 2.832 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001604/0.5677, allocations: 183.1 kB / 1.37 GB, free: 2.613 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.5677, allocations: 11.94 kB / 1.37 GB, free: 2.602 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.601e-05/0.5678, allocations: 8 kB / 1.37 GB, free: 2.594 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001668/0.5679, allocations: 92.58 kB / 1.37 GB, free: 2.492 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.568, allocations: 4 kB / 1.37 GB, free: 2.488 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.568, allocations: 0 / 1.37 GB, free: 2.488 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.568, allocations: 0 / 1.37 GB, free: 2.488 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.52e-05/0.5681, allocations: 35.98 kB / 1.37 GB, free: 2.453 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005699/0.5686, allocations: 456.5 kB / 1.371 GB, free: 1.953 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 5.669e-05/0.5687, allocations: 41.22 kB / 1.371 GB, free: 1.895 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 8.957e-06/0.5687, allocations: 0 / 1.371 GB, free: 1.895 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.5688, allocations: 34.59 kB / 1.371 GB, free: 1.852 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.5688, allocations: 0 / 1.371 GB, free: 1.852 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.0001718/0.5689, allocations: 53.59 kB / 1.371 GB, free: 1.793 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.569, allocations: 81.36 kB / 1.371 GB, free: 1.695 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.5691, allocations: 151.4 kB / 1.371 GB, free: 1.543 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.327e-05/0.5692, allocations: 25.7 kB / 1.371 GB, free: 1.512 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.812e-05/0.5692, allocations: 107.9 kB / 1.371 GB, free: 1.402 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 8.196e-06/0.5693, allocations: 3.984 kB / 1.371 GB, free: 1.398 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-06/0.5693, allocations: 0 / 1.371 GB, free: 1.398 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.5694, allocations: 326.8 kB / 1.371 GB, free: 1.07 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.719e-05/0.5694, allocations: 8 kB / 1.371 GB, free: 1.062 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.381e-05/0.5694, allocations: 25.7 kB / 1.371 GB, free: 1.031 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.386e-05/0.5695, allocations: 8 kB / 1.371 GB, free: 1.023 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.5695, allocations: 0 / 1.371 GB, free: 1.023 MB / 0.8698 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.184e-05/0.5696, allocations: 57.55 kB / 1.371 GB, free: 0.9609 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.5696, allocations: 4 kB / 1.371 GB, free: 0.957 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.5696, allocations: 0 / 1.371 GB, free: 0.957 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.5696, allocations: 4 kB / 1.371 GB, free: 0.9531 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.106e-05/0.5697, allocations: 7.984 kB / 1.371 GB, free: 0.9453 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.463e-06/0.5697, allocations: 4 kB / 1.371 GB, free: 0.9414 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.638e-05/0.5697, allocations: 19.84 kB / 1.371 GB, free: 0.9219 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.549e-06/0.5698, allocations: 0 / 1.371 GB, free: 0.9219 MB / 0.8698 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 8.924e-05/0.5699, allocations: 117.8 kB / 1.372 GB, free: 0.7969 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.231e-05/0.5699, allocations: 7.906 kB / 1.372 GB, free: 0.7891 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.215e-05/0.5699, allocations: 15.8 kB / 1.372 GB, free: 0.7734 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.5699, allocations: 3.938 kB / 1.372 GB, free: 0.7695 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.57, allocations: 0 / 1.372 GB, free: 0.7695 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.57, allocations: 96 / 1.372 GB, free: 0.7695 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003673/0.5703, allocations: 474.8 kB / 1.372 GB, free: 248 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.5704, allocations: 3.984 kB / 1.372 GB, free: 244 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.867e-05/0.5704, allocations: 4 kB / 1.372 GB, free: 240 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.5704, allocations: 0 / 1.372 GB, free: 240 kB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.5704, allocations: 0 / 1.372 GB, free: 240 kB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.5704, allocations: 4 kB / 1.372 GB, free: 236 kB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.5704, allocations: 0 / 1.372 GB, free: 236 kB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.376e-05/0.5705, allocations: 95.62 kB / 1.372 GB, free: 112 kB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.349e-05/0.5706, allocations: 89 kB / 1.372 GB, free: 4 kB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.5706, allocations: 0 / 1.372 GB, free: 4 kB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.927e-05/0.5706, allocations: 0 / 1.372 GB, free: 4 kB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.631e-05/0.5707, allocations: 8.109 kB / 1.372 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-06/0.5707, allocations: 3.938 kB / 1.372 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 9.623e-05/0.5708, allocations: 128 kB / 1.372 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5708, allocations: 0 / 1.372 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000178/0.571, allocations: 11.91 kB / 1.372 GB, free: 15.85 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 () * 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.0004088/0.5714, allocations: 0.6933 MB / 1.373 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 8.371e-05/0.5715, allocations: 19.94 kB / 1.373 GB, free: 15.1 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.5715, allocations: 0 / 1.373 GB, free: 15.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 1.135e-05/0.5715, allocations: 8 kB / 1.373 GB, free: 15.09 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001147/0.5716, allocations: 7.953 kB / 1.373 GB, free: 15.09 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008698/0.5725, allocations: 0.7009 MB / 1.374 GB, free: 14.32 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.5727, allocations: 0.7009 MB / 1.374 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 2.995e-05/0.5728, allocations: 8.422 kB / 1.374 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.58e-05/0.5728, allocations: 19.44 kB / 1.375 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of SimCode: time 2.11e-07/0.5728, allocations: 0 / 1.375 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01411/0.5869, allocations: 1.492 MB / 1.376 GB, free: 12.21 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000228/0.5872, allocations: 179.4 kB / 1.376 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.545/2.133, allocations: 0 / 1.376 GB, free: 11.98 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat does not exist to compare? outputFormat=mat