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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008793/0.0008794, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.005246/0.005246, allocations: 169.8 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.176/1.176, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.125/2.125, allocations: 390.9 MB / 0.6664 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002939/0.0002938, allocations: 12 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5445/0.5448, allocations: 142.4 MB / 0.9552 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.0007511/0.5456, allocations: 0.5293 MB / 0.9557 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 9.402e-05/0.5457, allocations: 41.66 kB / 0.9557 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.16e-05/0.5458, allocations: 1.25 kB / 0.9557 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.04e-05/0.5458, allocations: 11.86 kB / 0.9557 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.731e-05/0.5459, allocations: 8.969 kB / 0.9557 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 4.343e-05/0.5459, allocations: 15.58 kB / 0.9558 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.446e-05/0.546, allocations: 50.48 kB / 0.9558 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.5461, allocations: 50.19 kB / 0.9559 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.501e-05/0.5462, allocations: 17.94 kB / 0.9559 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.603e-05/0.5462, allocations: 23.95 kB / 0.9559 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.465e-05/0.5462, allocations: 1.094 kB / 0.9559 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.194e-06/0.5462, allocations: 2.406 kB / 0.9559 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.407e-05/0.5463, allocations: 9.344 kB / 0.9559 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.163e-05/0.5463, allocations: 47.14 kB / 0.956 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.252e-05/0.5464, allocations: 79.33 kB / 0.956 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.5464, allocations: 0 / 0.956 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.513e-06/0.5464, allocations: 0 / 0.956 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.857e-06/0.5464, allocations: 0 / 0.956 GB, free: 7.004 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.0002593/0.5467, allocations: 361.1 kB / 0.9564 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.5467, allocations: 10.06 kB / 0.9564 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.653e-05/0.5467, allocations: 41.55 kB / 0.9564 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.462e-05/0.5468, allocations: 13.62 kB / 0.9564 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.5469, allocations: 189.6 kB / 0.9566 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.865e-06/0.5469, allocations: 11.97 kB / 0.9566 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.306e-05/0.5469, allocations: 9.219 kB / 0.9566 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.5471, allocations: 95.47 kB / 0.9567 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.5471, allocations: 3.938 kB / 0.9567 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.5471, allocations: 5.188 kB / 0.9567 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.5471, allocations: 5.172 kB / 0.9567 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.297e-05/0.5472, allocations: 36.89 kB / 0.9568 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003776/0.5475, allocations: 441.6 kB / 0.9572 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.4e-05/0.5476, allocations: 33.09 kB / 0.9572 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.917e-05/0.5476, allocations: 27.33 kB / 0.9573 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.508e-06/0.5476, allocations: 1 kB / 0.9573 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.202e-05/0.5477, allocations: 35.69 kB / 0.9573 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.272e-06/0.5477, allocations: 0 / 0.9573 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001377/0.5478, allocations: 55.64 kB / 0.9573 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.934e-05/0.5478, allocations: 81.11 kB / 0.9574 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.5479, allocations: 164.5 kB / 0.9576 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.099e-06/0.548, allocations: 25.7 kB / 0.9576 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.608e-05/0.548, allocations: 108.3 kB / 0.9577 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.242e-06/0.548, allocations: 9.906 kB / 0.9577 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.696e-05/0.548, allocations: 9.719 kB / 0.9577 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.404e-05/0.5481, allocations: 321.6 kB / 0.958 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.555e-05/0.5481, allocations: 7.438 kB / 0.958 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.749e-05/0.5481, allocations: 18.23 kB / 0.9581 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.336e-05/0.5481, allocations: 38.5 kB / 0.9581 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.5482, allocations: 0 / 0.9581 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.812e-05/0.5482, allocations: 51.95 kB / 0.9581 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.5482, allocations: 8.812 kB / 0.9582 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.5483, allocations: 0 / 0.9582 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.025e-05/0.5483, allocations: 5.172 kB / 0.9582 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.216e-05/0.5483, allocations: 10.03 kB / 0.9582 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.5483, allocations: 4.062 kB / 0.9582 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.831e-05/0.5484, allocations: 6.406 kB / 0.9582 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.519e-06/0.5484, allocations: 2.094 kB / 0.9582 GB, free: 4.797 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.311e-05/0.5484, allocations: 112.6 kB / 0.9583 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.159e-05/0.5485, allocations: 13.41 kB / 0.9583 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.832e-05/0.5485, allocations: 13.86 kB / 0.9583 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.5485, allocations: 1.094 kB / 0.9583 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.5485, allocations: 0 / 0.9583 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.5485, allocations: 1.312 kB / 0.9583 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002379/0.5488, allocations: 473.6 kB / 0.9588 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.5488, allocations: 1 kB / 0.9588 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.737e-05/0.5488, allocations: 3.094 kB / 0.9588 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.5488, allocations: 0.75 kB / 0.9588 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.96e-06/0.5488, allocations: 1.125 kB / 0.9588 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.5488, allocations: 1 kB / 0.9588 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.5488, allocations: 0 / 0.9588 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.715e-05/0.5489, allocations: 86.95 kB / 0.9589 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.589e-05/0.5489, allocations: 92.11 kB / 0.9589 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.5489, allocations: 9.016 kB / 0.959 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.001e-05/0.549, allocations: 1.094 kB / 0.959 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.181e-05/0.549, allocations: 1.031 kB / 0.959 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.175e-06/0.549, allocations: 0.7812 kB / 0.959 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.082e-05/0.549, allocations: 125.2 kB / 0.9591 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of sort global known variables: time 5.81e-07/0.549, allocations: 0 / 0.9591 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001789/0.5492, allocations: 12.25 kB / 0.9591 GB, free: 3.848 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001901/0.5494, allocations: 0.6194 MB / 0.9597 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 5.96e-05/0.5495, allocations: 13.19 kB / 0.9597 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.5495, allocations: 1.25 kB / 0.9597 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.618e-06/0.5495, allocations: 7.531 kB / 0.9597 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001487/0.5497, allocations: 9.688 kB / 0.9597 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007783/0.5504, allocations: 1.348 MB / 0.961 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.498e-05/0.5505, allocations: 0.6905 MB / 0.9617 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.883e-05/0.5506, allocations: 12.64 kB / 0.9617 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.354e-05/0.5506, allocations: 23.53 kB / 0.9617 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.5506, allocations: 0 / 0.9617 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1847/0.7353, allocations: 1.356 MB / 0.9631 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001339/0.7355, allocations: 211.3 kB / 0.9633 GB, free: 336 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.924/2.659, allocations: 0.5 kB / 0.9633 GB, free: 336 kB / 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/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) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches