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.269/2.269, allocations: 387.1 MB / 399.7 MB, free: 9.457 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.001195/0.001196, allocations: 180.9 kB / 492.3 MB, free: 0.6289 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.604/1.604, allocations: 221.3 MB / 0.7871 GB, free: 12.96 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.0008601/0.0008598, allocations: 93.66 kB / 0.9267 GB, free: 14.04 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.752e-05/3.753e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.354, allocations: 142.3 MB / 1.212 GB, free: 38.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.139/1.493, allocations: 148.7 MB / 1.358 GB, free: 18.85 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/1.494, allocations: 61.86 kB / 1.358 GB, free: 18.85 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003336/1.497, allocations: 1.082 MB / 1.359 GB, free: 34.5 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.094e-06/1.497, allocations: 0.5625 kB / 1.359 GB, free: 34.5 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.959e-06/1.497, allocations: 7.969 kB / 1.359 GB, free: 34.49 MB / 0.8386 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.0003237/1.497, allocations: 358 kB / 1.359 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/1.497, allocations: 11.5 kB / 1.359 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.072e-05/1.497, allocations: 38.22 kB / 1.359 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.605e-05/1.497, allocations: 8.281 kB / 1.359 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/1.498, allocations: 188.1 kB / 1.359 GB, free: 33.88 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/1.498, allocations: 7.531 kB / 1.359 GB, free: 33.88 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.473e-05/1.498, allocations: 3.969 kB / 1.359 GB, free: 33.88 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001486/1.498, allocations: 92.8 kB / 1.36 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/1.498, allocations: 0 / 1.36 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/1.498, allocations: 3.062 kB / 1.36 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/1.498, allocations: 3.812 kB / 1.36 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.99e-05/1.498, allocations: 37.95 kB / 1.36 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005441/1.498, allocations: 456.3 kB / 1.36 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.05e-05/1.498, allocations: 40.19 kB / 1.36 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.81e-05/1.499, allocations: 22.16 kB / 1.36 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.387e-05/1.499, allocations: 0 / 1.36 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.894e-05/1.499, allocations: 41.97 kB / 1.36 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 8.12e-07/1.499, allocations: 0 / 1.36 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001914/1.499, allocations: 47.23 kB / 1.36 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.914e-05/1.499, allocations: 77.11 kB / 1.36 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/1.499, allocations: 148.4 kB / 1.36 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/1.499, allocations: 29.45 kB / 1.36 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.095e-05/1.499, allocations: 106.3 kB / 1.361 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.005e-06/1.499, allocations: 7.156 kB / 1.361 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.455e-06/1.499, allocations: 3.594 kB / 1.361 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.813e-05/1.499, allocations: 317.3 kB / 1.361 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.68e-05/1.499, allocations: 7.797 kB / 1.361 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.06e-05/1.499, allocations: 21.77 kB / 1.361 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.408e-05/1.499, allocations: 12.22 kB / 1.361 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/1.499, allocations: 0.6562 kB / 1.361 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.412e-05/1.499, allocations: 62.11 kB / 1.361 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/1.499, allocations: 4.781 kB / 1.361 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/1.499, allocations: 1.312 kB / 1.361 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/1.499, allocations: 5.328 kB / 1.361 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.616e-05/1.499, allocations: 4.469 kB / 1.361 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/1.499, allocations: 0.5156 kB / 1.361 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.098e-05/1.499, allocations: 15.81 kB / 1.361 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-06/1.499, allocations: 0.6094 kB / 1.361 GB, free: 32.59 MB / 0.8386 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 4.871e-05/1.5, allocations: 113.5 kB / 1.361 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.114e-05/1.5, allocations: 8.109 kB / 1.361 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.992e-05/1.5, allocations: 9.266 kB / 1.361 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/1.5, allocations: 3.969 kB / 1.361 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/1.5, allocations: 0.5625 kB / 1.361 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/1.5, allocations: 0 / 1.361 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003339/1.5, allocations: 471.7 kB / 1.362 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/1.5, allocations: 0 / 1.362 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.809e-05/1.5, allocations: 4.812 kB / 1.362 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/1.5, allocations: 2 kB / 1.362 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/1.5, allocations: 8.469 kB / 1.362 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/1.5, allocations: 0 / 1.362 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/1.5, allocations: 3.938 kB / 1.362 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.308e-05/1.5, allocations: 92.72 kB / 1.362 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.898e-05/1.5, allocations: 87 kB / 1.362 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.442e-05/1.5, allocations: 4.594 kB / 1.362 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.184e-05/1.5, allocations: 0.5625 kB / 1.362 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.976e-05/1.5, allocations: 4.484 kB / 1.362 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-06/1.5, allocations: 3.938 kB / 1.362 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.178e-05/1.5, allocations: 124.1 kB / 1.362 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.5, allocations: 0 / 1.362 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001963/1.501, allocations: 15.64 kB / 1.362 GB, free: 31.71 MB / 0.8386 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.0003351/1.501, allocations: 0.6944 MB / 1.363 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.423e-05/1.501, allocations: 14.12 kB / 1.363 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/1.501, allocations: 0 / 1.363 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.257e-06/1.501, allocations: 8.359 kB / 1.363 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/1.501, allocations: 16.38 kB / 1.363 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003797/1.502, allocations: 132.8 kB / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/1.502, allocations: 0.7004 MB / 1.363 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.372e-05/1.502, allocations: 7.156 kB / 1.363 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.429e-05/1.502, allocations: 23.61 kB / 1.363 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.502, allocations: 0 / 1.363 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01442/1.516, allocations: 1.449 MB / 1.365 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002486/1.517, allocations: 160.2 kB / 1.365 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.601/3.118, allocations: 0 / 1.365 GB, free: 29.76 MB / 0.8386 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