Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_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.From_ton,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_From_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.001507/0.001507, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.001824/0.001824, allocations: 168.7 kB / 15.95 MB, free: 204 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.47/1.47, allocations: 223.3 MB / 240 MB, free: 5.422 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.43/2.43, allocations: 390.4 MB / 0.6655 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003134/0.0003134, allocations: 8 kB / 0.8149 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.707/0.7073, allocations: 142.3 MB / 0.9539 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.000946/0.7083, allocations: 0.5188 MB / 0.9544 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 9.493e-05/0.7084, allocations: 40.81 kB / 0.9544 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.515e-05/0.7084, allocations: 2.188 kB / 0.9544 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.065e-05/0.7085, allocations: 3.938 kB / 0.9544 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.284e-05/0.7085, allocations: 12.95 kB / 0.9544 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 4.856e-05/0.7086, allocations: 7.25 kB / 0.9544 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.743e-05/0.7087, allocations: 57.53 kB / 0.9545 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.7088, allocations: 35.03 kB / 0.9545 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.471e-05/0.7089, allocations: 13.39 kB / 0.9545 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.624e-05/0.7089, allocations: 22.98 kB / 0.9545 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.428e-05/0.709, allocations: 2.156 kB / 0.9545 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.917e-06/0.709, allocations: 1.812 kB / 0.9546 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.274e-05/0.709, allocations: 9.812 kB / 0.9546 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.067e-05/0.709, allocations: 33.17 kB / 0.9546 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.911e-05/0.7091, allocations: 48.73 kB / 0.9546 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.7091, allocations: 0 / 0.9546 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.754e-06/0.7091, allocations: 5.312 kB / 0.9546 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.177e-06/0.7091, allocations: 3.938 kB / 0.9546 GB, free: 7.441 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.0003405/0.7095, allocations: 366.2 kB / 0.955 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.7095, allocations: 12.56 kB / 0.955 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.391e-05/0.7096, allocations: 37.03 kB / 0.955 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.954e-05/0.7096, allocations: 21.52 kB / 0.9551 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001618/0.7098, allocations: 188.8 kB / 0.9552 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.7098, allocations: 2.219 kB / 0.9552 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.7098, allocations: 13.06 kB / 0.9553 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001474/0.71, allocations: 91.27 kB / 0.9553 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.71, allocations: 0 / 0.9553 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.71, allocations: 5.656 kB / 0.9554 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.71, allocations: 1.625 kB / 0.9554 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.613e-05/0.7101, allocations: 39.06 kB / 0.9554 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004495/0.7105, allocations: 441.6 kB / 0.9558 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.531e-05/0.7106, allocations: 37.41 kB / 0.9558 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.412e-05/0.7106, allocations: 19.44 kB / 0.9559 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.112e-05/0.7107, allocations: 4 kB / 0.9559 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.701e-05/0.7107, allocations: 35.88 kB / 0.9559 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.7107, allocations: 0 / 0.9559 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001714/0.7109, allocations: 55.66 kB / 0.956 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.7109, allocations: 77.11 kB / 0.956 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.7111, allocations: 159.4 kB / 0.9562 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.177e-05/0.7111, allocations: 31.3 kB / 0.9562 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.831e-05/0.7111, allocations: 108.2 kB / 0.9563 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.387e-06/0.7111, allocations: 9 kB / 0.9563 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-06/0.7112, allocations: 0 / 0.9563 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.221e-05/0.7112, allocations: 320.9 kB / 0.9566 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.821e-05/0.7112, allocations: 11.55 kB / 0.9566 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.837e-05/0.7113, allocations: 14.31 kB / 0.9567 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.577e-05/0.7113, allocations: 12.44 kB / 0.9567 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.7113, allocations: 0 / 0.9567 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.413e-05/0.7114, allocations: 63.09 kB / 0.9567 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.7114, allocations: 4.969 kB / 0.9567 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.7114, allocations: 1.031 kB / 0.9567 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.7114, allocations: 4.969 kB / 0.9567 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.981e-05/0.7115, allocations: 5.594 kB / 0.9567 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.7115, allocations: 1.062 kB / 0.9567 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.804e-05/0.7115, allocations: 2.25 kB / 0.9567 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.689e-06/0.7116, allocations: 5.25 kB / 0.9568 GB, free: 5.285 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 6.313e-05/0.7116, allocations: 121.3 kB / 0.9569 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.061e-05/0.7117, allocations: 11.38 kB / 0.9569 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.3e-05/0.7117, allocations: 15.48 kB / 0.9569 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.7117, allocations: 0 / 0.9569 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.7117, allocations: 5.062 kB / 0.9569 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.7117, allocations: 1.031 kB / 0.9569 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002977/0.712, allocations: 474.2 kB / 0.9573 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.712, allocations: 0 / 0.9573 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.845e-05/0.7121, allocations: 3.375 kB / 0.9574 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.7121, allocations: 1.125 kB / 0.9574 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.7121, allocations: 0.9688 kB / 0.9574 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.7121, allocations: 1.094 kB / 0.9574 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.7121, allocations: 3.984 kB / 0.9574 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.752e-05/0.7122, allocations: 86.36 kB / 0.9574 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.514e-05/0.7122, allocations: 92.95 kB / 0.9575 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.7122, allocations: 0 / 0.9575 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.794e-05/0.7123, allocations: 1.312 kB / 0.9575 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.426e-05/0.7123, allocations: 1.156 kB / 0.9575 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.7123, allocations: 0.9062 kB / 0.9575 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.349e-05/0.7124, allocations: 126.8 kB / 0.9577 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.3e-07/0.7124, allocations: 1.156 kB / 0.9577 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001872/0.7126, allocations: 10.03 kB / 0.9577 GB, free: 4.324 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.0002666/0.7128, allocations: 0.6121 MB / 0.9583 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.737e-05/0.7129, allocations: 14.91 kB / 0.9583 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.7129, allocations: 4.156 kB / 0.9583 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.073e-05/0.7129, allocations: 8.125 kB / 0.9583 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001506/0.7131, allocations: 8.141 kB / 0.9583 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007266/0.7138, allocations: 0.5539 MB / 0.9588 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001264/0.714, allocations: 0.6915 MB / 0.9595 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.207e-05/0.714, allocations: 12.55 kB / 0.9595 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.255e-05/0.7141, allocations: 27.52 kB / 0.9596 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.7141, allocations: 0 / 0.9596 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0115/0.7256, allocations: 1.49 MB / 0.961 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001372/0.7257, allocations: 200.8 kB / 0.9612 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.703/2.429, allocations: 0 / 0.9612 GB, free: 1.559 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_From_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_From_ton.fmu > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat does not exist to compare? outputFormat=mat