Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.319/2.319, allocations: 390.5 MB / 398 MB, free: 10.91 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.001054/0.001054, allocations: 180.8 kB / 491.2 MB, free: 1.559 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.633/1.633, allocations: 221.5 MB / 0.7868 GB, free: 13.33 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.001013/0.001013, allocations: 94.91 kB / 0.9269 GB, free: 13.83 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.571e-05/2.573e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.323, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.037/1.36, allocations: 148.9 MB / 1.358 GB, free: 17.52 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/1.36, allocations: 63.7 kB / 1.358 GB, free: 17.52 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003187/1.364, allocations: 1.088 MB / 1.359 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.934e-06/1.364, allocations: 0 / 1.359 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.609e-05/1.364, allocations: 0 / 1.359 GB, free: 33.16 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.0003675/1.364, allocations: 358.8 kB / 1.359 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.385e-05/1.364, allocations: 13.08 kB / 1.359 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.977e-05/1.364, allocations: 11.83 kB / 1.359 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000157/1.364, allocations: 179.2 kB / 1.359 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/1.364, allocations: 7.812 kB / 1.359 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.742e-05/1.364, allocations: 7.781 kB / 1.359 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001094/1.364, allocations: 33.12 kB / 1.36 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001462/1.365, allocations: 77.98 kB / 1.36 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/1.365, allocations: 0 / 1.36 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/1.365, allocations: 0 / 1.36 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.862e-06/1.365, allocations: 3.844 kB / 1.36 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005892/1.365, allocations: 410.2 kB / 1.36 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001223/1.365, allocations: 42.12 kB / 1.36 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.162e-05/1.365, allocations: 17.58 kB / 1.36 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.729e-06/1.365, allocations: 0 / 1.36 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/1.366, allocations: 38.28 kB / 1.36 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 9.31e-07/1.366, allocations: 0 / 1.36 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001751/1.366, allocations: 43.53 kB / 1.36 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.202e-05/1.366, allocations: 81.17 kB / 1.36 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/1.366, allocations: 117.5 kB / 1.36 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 9.738e-06/1.366, allocations: 27.67 kB / 1.36 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.871e-05/1.366, allocations: 107.6 kB / 1.36 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.312e-06/1.366, allocations: 3.906 kB / 1.36 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-06/1.366, allocations: 0 / 1.36 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001032/1.366, allocations: 321.1 kB / 1.361 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.598e-05/1.366, allocations: 7.219 kB / 1.361 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.798e-05/1.366, allocations: 21.28 kB / 1.361 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.336e-05/1.366, allocations: 5.422 kB / 1.361 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/1.366, allocations: 3.938 kB / 1.361 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.571e-05/1.366, allocations: 57.94 kB / 1.361 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/1.366, allocations: 10.58 kB / 1.361 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/1.366, allocations: 0 / 1.361 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/1.366, allocations: 0 / 1.361 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.623e-05/1.366, allocations: 11.72 kB / 1.361 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/1.366, allocations: 0 / 1.361 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.685e-05/1.366, allocations: 4.922 kB / 1.361 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-06/1.366, allocations: 0 / 1.361 GB, free: 31.34 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 7.139e-05/1.367, allocations: 108.8 kB / 1.361 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 7.593e-05/1.367, allocations: 47.02 kB / 1.361 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.686e-05/1.367, allocations: 1.125 kB / 1.361 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.19e-05/1.367, allocations: 16.89 kB / 1.361 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/1.367, allocations: 64 / 1.361 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/1.367, allocations: 4 kB / 1.361 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/1.367, allocations: 0 / 1.361 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003176/1.367, allocations: 447.2 kB / 1.361 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/1.367, allocations: 3.344 kB / 1.361 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.701e-05/1.367, allocations: 0 / 1.361 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/1.367, allocations: 7.219 kB / 1.361 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.862e-06/1.367, allocations: 0 / 1.361 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/1.367, allocations: 5.094 kB / 1.361 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/1.367, allocations: 5.75 kB / 1.361 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.559e-05/1.367, allocations: 86.56 kB / 1.362 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.989e-05/1.367, allocations: 82.42 kB / 1.362 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.588e-05/1.367, allocations: 4.625 kB / 1.362 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.906e-05/1.367, allocations: 8.016 kB / 1.362 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.138e-05/1.367, allocations: 0 / 1.362 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-06/1.367, allocations: 3.375 kB / 1.362 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.651e-05/1.367, allocations: 101 kB / 1.362 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.91e-07/1.367, allocations: 0 / 1.362 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001773/1.368, allocations: 9.969 kB / 1.362 GB, free: 30.45 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.0003685/1.368, allocations: 0.6913 MB / 1.362 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 7.725e-05/1.368, allocations: 13.72 kB / 1.362 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/1.368, allocations: 0 / 1.362 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.022e-05/1.368, allocations: 11.06 kB / 1.362 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001197/1.368, allocations: 4.812 kB / 1.362 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003608/1.369, allocations: 137 kB / 1.363 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002908/1.369, allocations: 0.6948 MB / 1.363 GB, free: 28.92 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.838e-05/1.369, allocations: 5.812 kB / 1.363 GB, free: 28.92 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.071e-05/1.369, allocations: 26.05 kB / 1.363 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.369, allocations: 0 / 1.363 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01804/1.387, allocations: 0.8746 MB / 1.364 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000173/1.387, allocations: 155 kB / 1.364 GB, free: 28.66 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.474/2.862, allocations: 0 / 1.364 GB, free: 28.66 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat does not exist to compare? outputFormat=mat