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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008446/0.0008446, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.000824/0.0008242, allocations: 172.7 kB / 15.95 MB, free: 208 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.402/1.402, allocations: 223.3 MB / 240 MB, free: 5.293 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.431/2.431, allocations: 390.4 MB / 0.6655 GB, free: 2.848 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003211/0.0003211, allocations: 12 kB / 0.8149 GB, free: 14.07 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7712/0.7715, allocations: 142.3 MB / 0.9539 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001321/0.7729, allocations: 0.5191 MB / 0.9544 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001316/0.7731, allocations: 40.84 kB / 0.9544 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.965e-05/0.7732, allocations: 1.562 kB / 0.9544 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.482e-05/0.7732, allocations: 7.922 kB / 0.9544 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.75e-05/0.7733, allocations: 5.312 kB / 0.9544 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 5.269e-05/0.7734, allocations: 12.09 kB / 0.9544 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001307/0.7735, allocations: 56.56 kB / 0.9545 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.7737, allocations: 30.84 kB / 0.9545 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.672e-05/0.7738, allocations: 13.66 kB / 0.9545 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.007e-05/0.7738, allocations: 19.52 kB / 0.9545 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.161e-05/0.7739, allocations: 6.375 kB / 0.9546 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.135e-05/0.7739, allocations: 1.281 kB / 0.9546 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.734e-05/0.7739, allocations: 10.25 kB / 0.9546 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.706e-05/0.7739, allocations: 33.27 kB / 0.9546 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.931e-05/0.7741, allocations: 56.33 kB / 0.9546 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.7741, allocations: 3.938 kB / 0.9547 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.384e-06/0.7741, allocations: 1.125 kB / 0.9547 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.7741, allocations: 0 / 0.9547 GB, free: 7.512 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.0004354/0.7745, allocations: 357.3 kB / 0.955 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/0.7746, allocations: 13.34 kB / 0.955 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.579e-05/0.7747, allocations: 46 kB / 0.955 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.096e-05/0.7747, allocations: 20.75 kB / 0.9551 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002169/0.7749, allocations: 185.2 kB / 0.9552 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.775, allocations: 2.938 kB / 0.9552 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.608e-05/0.775, allocations: 12.19 kB / 0.9553 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001976/0.7752, allocations: 92.05 kB / 0.9553 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.7752, allocations: 1.094 kB / 0.9553 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.7753, allocations: 5.25 kB / 0.9554 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.7753, allocations: 2.125 kB / 0.9554 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001393/0.7754, allocations: 46.89 kB / 0.9554 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006799/0.7761, allocations: 434.2 kB / 0.9558 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.163e-05/0.7762, allocations: 44.09 kB / 0.9559 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.718e-05/0.7763, allocations: 16 kB / 0.9559 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.136e-05/0.7763, allocations: 0 / 0.9559 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.7763, allocations: 36.12 kB / 0.9559 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.001e-06/0.7763, allocations: 0 / 0.9559 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0002497/0.7766, allocations: 59.28 kB / 0.956 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.7767, allocations: 78.45 kB / 0.956 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001832/0.7768, allocations: 161.2 kB / 0.9562 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/0.7769, allocations: 26.77 kB / 0.9562 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.174e-05/0.7769, allocations: 104.6 kB / 0.9563 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.342e-05/0.777, allocations: 8.906 kB / 0.9563 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-06/0.777, allocations: 0 / 0.9563 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.74e-05/0.7771, allocations: 325.6 kB / 0.9566 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.524e-05/0.7771, allocations: 10.38 kB / 0.9566 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.785e-05/0.7771, allocations: 14.66 kB / 0.9567 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.658e-05/0.7772, allocations: 13.34 kB / 0.9567 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.7772, allocations: 0 / 0.9567 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001146/0.7773, allocations: 58.62 kB / 0.9567 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.7773, allocations: 5.719 kB / 0.9567 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.7773, allocations: 64 / 0.9567 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.7774, allocations: 5.406 kB / 0.9567 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.562e-05/0.7775, allocations: 5.719 kB / 0.9567 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.7775, allocations: 3.938 kB / 0.9567 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.556e-05/0.7775, allocations: 2.75 kB / 0.9568 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.7776, allocations: 1.594 kB / 0.9568 GB, free: 5.355 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 8.382e-05/0.7777, allocations: 121.9 kB / 0.9569 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.247e-05/0.7777, allocations: 6.688 kB / 0.9569 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.214e-05/0.7778, allocations: 11.5 kB / 0.9569 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.7778, allocations: 10 kB / 0.9569 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.7778, allocations: 3.938 kB / 0.9569 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.7778, allocations: 0 / 0.9569 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003928/0.7782, allocations: 469.6 kB / 0.9573 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.7782, allocations: 1.125 kB / 0.9573 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.324e-05/0.7783, allocations: 7.047 kB / 0.9574 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.7783, allocations: 4.906 kB / 0.9574 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.7783, allocations: 1.125 kB / 0.9574 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.7783, allocations: 4.906 kB / 0.9574 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.7783, allocations: 0 / 0.9574 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001103/0.7785, allocations: 82.98 kB / 0.9574 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.363e-05/0.7785, allocations: 87.69 kB / 0.9575 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.991e-05/0.7785, allocations: 0.8438 kB / 0.9575 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.307e-05/0.7786, allocations: 1.125 kB / 0.9575 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.061e-05/0.7786, allocations: 5.125 kB / 0.9575 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.229e-06/0.7786, allocations: 1.156 kB / 0.9575 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001088/0.7787, allocations: 129.1 kB / 0.9577 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.11e-07/0.7788, allocations: 0 / 0.9577 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003441/0.7791, allocations: 9.469 kB / 0.9577 GB, free: 4.395 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.0003179/0.7794, allocations: 0.6157 MB / 0.9583 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001006/0.7796, allocations: 14.17 kB / 0.9583 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.7796, allocations: 0 / 0.9583 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.505e-05/0.7796, allocations: 8.625 kB / 0.9583 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.7798, allocations: 12.09 kB / 0.9583 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.7809, allocations: 0.5439 MB / 0.9588 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001233/0.781, allocations: 0.6982 MB / 0.9595 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.527e-05/0.7811, allocations: 9.016 kB / 0.9595 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.381e-05/0.7811, allocations: 26.92 kB / 0.9595 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of SimCode: time 4.31e-07/0.7811, allocations: 0 / 0.9595 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01501/0.7962, allocations: 1.487 MB / 0.961 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004782/0.7967, allocations: 196.2 kB / 0.9612 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.74/2.536, allocations: 0 / 0.9612 GB, free: 1.637 MB / 0.7169 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