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.001224/0.001224, allocations: 99.7 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.001484/0.001484, allocations: 177.3 kB / 15.94 MB, free: 228 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.42/1.42, allocations: 223.2 MB / 239.9 MB, free: 5.332 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.513/2.513, allocations: 390.3 MB / 0.6653 GB, free: 3.012 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005512/0.0005514, allocations: 12 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8782/0.8788, allocations: 142.3 MB / 0.9536 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001113/0.88, allocations: 0.5139 MB / 0.9541 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001105/0.8801, allocations: 37.77 kB / 0.9541 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.107e-05/0.8801, allocations: 1.344 kB / 0.9541 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.852e-05/0.8802, allocations: 3.938 kB / 0.9541 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.592e-05/0.8803, allocations: 13.2 kB / 0.9542 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 4.351e-05/0.8803, allocations: 15.61 kB / 0.9542 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.825e-05/0.8804, allocations: 35.72 kB / 0.9542 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.8805, allocations: 30 kB / 0.9542 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.847e-05/0.8806, allocations: 17.66 kB / 0.9542 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.531e-05/0.8807, allocations: 23.34 kB / 0.9543 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.367e-05/0.8807, allocations: 1.344 kB / 0.9543 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.758e-06/0.8807, allocations: 6.625 kB / 0.9543 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.38e-05/0.8807, allocations: 6.375 kB / 0.9543 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.582e-05/0.8808, allocations: 36.42 kB / 0.9543 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.092e-05/0.8809, allocations: 49.17 kB / 0.9544 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.8809, allocations: 0 / 0.9544 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.874e-06/0.8809, allocations: 0 / 0.9544 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.8809, allocations: 0 / 0.9544 GB, free: 7.484 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.0003662/0.8812, allocations: 366.8 kB / 0.9547 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.8813, allocations: 8.844 kB / 0.9547 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.88e-05/0.8813, allocations: 40.66 kB / 0.9548 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.052e-05/0.8814, allocations: 17.8 kB / 0.9548 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001763/0.8816, allocations: 196.4 kB / 0.955 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.8816, allocations: 6.688 kB / 0.955 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.336e-05/0.8816, allocations: 5.531 kB / 0.955 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001462/0.8818, allocations: 87.36 kB / 0.9551 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.8818, allocations: 0 / 0.9551 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.8818, allocations: 1.281 kB / 0.9551 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.8818, allocations: 10.59 kB / 0.9551 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.458e-05/0.8819, allocations: 43.03 kB / 0.9551 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004648/0.8824, allocations: 433.6 kB / 0.9555 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.719e-05/0.8824, allocations: 44.59 kB / 0.9556 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.664e-06/0.8824, allocations: 1.188 kB / 0.9556 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.547e-05/0.8825, allocations: 35.69 kB / 0.9556 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.363e-06/0.8825, allocations: 0 / 0.9556 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001617/0.8826, allocations: 54.41 kB / 0.9557 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.839e-05/0.8827, allocations: 86.2 kB / 0.9557 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001287/0.8828, allocations: 163.9 kB / 0.9559 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.277e-06/0.8828, allocations: 25.7 kB / 0.9559 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.032e-05/0.8829, allocations: 105 kB / 0.956 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 8.887e-06/0.8829, allocations: 13.05 kB / 0.956 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.776e-06/0.8829, allocations: 0 / 0.956 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.239e-05/0.883, allocations: 321.1 kB / 0.9563 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.586e-05/0.883, allocations: 7.125 kB / 0.9563 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.736e-05/0.883, allocations: 22.39 kB / 0.9564 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.531e-05/0.883, allocations: 12.25 kB / 0.9564 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.883, allocations: 1.062 kB / 0.9564 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.3e-05/0.8831, allocations: 57.97 kB / 0.9564 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.8831, allocations: 6.969 kB / 0.9564 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.8832, allocations: 1.219 kB / 0.9564 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.8832, allocations: 0 / 0.9564 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.021e-05/0.8832, allocations: 6.75 kB / 0.9564 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.962e-06/0.8833, allocations: 0 / 0.9564 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.908e-05/0.8833, allocations: 6.781 kB / 0.9565 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.8833, allocations: 5.406 kB / 0.9565 GB, free: 5.336 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 7.085e-05/0.8834, allocations: 112.6 kB / 0.9566 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.343e-05/0.8834, allocations: 11.88 kB / 0.9566 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.749e-05/0.8835, allocations: 11.8 kB / 0.9566 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.8835, allocations: 0 / 0.9566 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.8835, allocations: 1.281 kB / 0.9566 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.8835, allocations: 96 / 0.9566 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000284/0.8838, allocations: 486.2 kB / 0.9571 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.8838, allocations: 1.188 kB / 0.9571 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.703e-05/0.8838, allocations: 2.25 kB / 0.9571 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.8838, allocations: 1.188 kB / 0.9571 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.8838, allocations: 1.188 kB / 0.9571 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.8838, allocations: 1.25 kB / 0.9571 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.8838, allocations: 0 / 0.9571 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.404e-05/0.8839, allocations: 104.7 kB / 0.9572 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.458e-05/0.884, allocations: 87.62 kB / 0.9572 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.884, allocations: 1.281 kB / 0.9572 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.012e-05/0.884, allocations: 3.938 kB / 0.9572 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.731e-05/0.884, allocations: 5.453 kB / 0.9573 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-06/0.884, allocations: 1.125 kB / 0.9573 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.336e-05/0.8841, allocations: 123.8 kB / 0.9574 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8841, allocations: 0 / 0.9574 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001857/0.8843, allocations: 15.31 kB / 0.9574 GB, free: 4.355 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.0002858/0.8846, allocations: 0.6929 MB / 0.9581 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.377e-05/0.8847, allocations: 14.53 kB / 0.9581 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.8847, allocations: 0 / 0.9581 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.188e-05/0.8847, allocations: 8.281 kB / 0.9581 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001189/0.8848, allocations: 10.89 kB / 0.9581 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007923/0.8856, allocations: 0.6902 MB / 0.9588 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001494/0.8858, allocations: 0.7009 MB / 0.9595 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.456e-05/0.8858, allocations: 7.953 kB / 0.9595 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.321e-05/0.8859, allocations: 23 kB / 0.9595 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.8859, allocations: 0 / 0.9595 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01127/0.8972, allocations: 1.472 MB / 0.9609 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001668/0.8974, allocations: 188.9 kB / 0.9611 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.599/2.497, allocations: 0 / 0.9611 GB, free: 1.375 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