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.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.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.0009158/0.0009158, allocations: 97.95 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.007158/0.007158, allocations: 171.3 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.241/1.241, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.036/2.036, allocations: 390.9 MB / 0.6664 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003382/0.0003383, allocations: 11.98 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.574/0.5744, allocations: 142.4 MB / 0.9552 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.0007088/0.5751, allocations: 0.5341 MB / 0.9557 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 7.669e-05/0.5752, allocations: 41 kB / 0.9557 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.663e-05/0.5752, allocations: 1.062 kB / 0.9557 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.569e-05/0.5753, allocations: 11.92 kB / 0.9558 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.238e-05/0.5753, allocations: 9.188 kB / 0.9558 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 3.43e-05/0.5754, allocations: 16.31 kB / 0.9558 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.717e-05/0.5754, allocations: 57.72 kB / 0.9558 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.5756, allocations: 46.2 kB / 0.9559 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.85e-05/0.5756, allocations: 14.05 kB / 0.9559 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.112e-05/0.5756, allocations: 23.95 kB / 0.9559 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.094e-05/0.5757, allocations: 1.344 kB / 0.9559 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.081e-06/0.5757, allocations: 2.344 kB / 0.9559 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.259e-05/0.5757, allocations: 10 kB / 0.9559 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.708e-05/0.5757, allocations: 46.45 kB / 0.956 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.556e-05/0.5758, allocations: 76.03 kB / 0.956 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.5758, allocations: 0 / 0.956 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.533e-06/0.5758, allocations: 0 / 0.956 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.136e-06/0.5758, allocations: 4 kB / 0.956 GB, free: 7.16 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.0002366/0.5761, allocations: 357.7 kB / 0.9564 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.5761, allocations: 13.81 kB / 0.9564 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.511e-05/0.5761, allocations: 40.3 kB / 0.9564 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.24e-05/0.5762, allocations: 14.34 kB / 0.9565 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.5763, allocations: 189.3 kB / 0.9566 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.256e-06/0.5763, allocations: 4.156 kB / 0.9566 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.5763, allocations: 8.938 kB / 0.9566 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001116/0.5764, allocations: 94.86 kB / 0.9567 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.5764, allocations: 3.938 kB / 0.9567 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.764e-06/0.5765, allocations: 8.891 kB / 0.9567 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.5765, allocations: 2.188 kB / 0.9567 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.185e-05/0.5765, allocations: 39.55 kB / 0.9568 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003473/0.5769, allocations: 438.7 kB / 0.9572 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.307e-05/0.5769, allocations: 32.84 kB / 0.9572 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.659e-05/0.577, allocations: 24.19 kB / 0.9573 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 5.009e-06/0.577, allocations: 0 / 0.9573 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.328e-05/0.577, allocations: 39.95 kB / 0.9573 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 7.82e-07/0.577, allocations: 0 / 0.9573 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001241/0.5771, allocations: 55.3 kB / 0.9573 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.133e-05/0.5771, allocations: 82.08 kB / 0.9574 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.5772, allocations: 163.5 kB / 0.9576 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.06e-06/0.5773, allocations: 25.7 kB / 0.9576 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.404e-05/0.5773, allocations: 113.7 kB / 0.9577 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.761e-06/0.5773, allocations: 7.906 kB / 0.9577 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.654e-05/0.5773, allocations: 11.03 kB / 0.9577 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.394e-05/0.5774, allocations: 321.7 kB / 0.958 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.329e-05/0.5774, allocations: 10.5 kB / 0.9581 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.462e-05/0.5774, allocations: 15.12 kB / 0.9581 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.247e-05/0.5774, allocations: 38.33 kB / 0.9581 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.5775, allocations: 0 / 0.9581 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.401e-05/0.5775, allocations: 51.3 kB / 0.9582 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.5775, allocations: 9.656 kB / 0.9582 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.145e-06/0.5775, allocations: 3.938 kB / 0.9582 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.947e-06/0.5776, allocations: 1.25 kB / 0.9582 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.862e-05/0.5776, allocations: 9.922 kB / 0.9582 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.306e-06/0.5776, allocations: 0 / 0.9582 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.73e-05/0.5776, allocations: 6.25 kB / 0.9582 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.807e-06/0.5777, allocations: 1.156 kB / 0.9582 GB, free: 4.961 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 3.998e-05/0.5777, allocations: 118.3 kB / 0.9583 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.965e-05/0.5777, allocations: 11.28 kB / 0.9583 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.702e-05/0.5778, allocations: 11.19 kB / 0.9583 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.5778, allocations: 1.125 kB / 0.9583 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.5778, allocations: 3.984 kB / 0.9583 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.5778, allocations: 1.125 kB / 0.9583 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002383/0.578, allocations: 474.3 kB / 0.9588 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.578, allocations: 0 / 0.9588 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.623e-05/0.5781, allocations: 3.219 kB / 0.9588 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.5781, allocations: 1.188 kB / 0.9588 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.178e-06/0.5781, allocations: 1.094 kB / 0.9588 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.5781, allocations: 0.9688 kB / 0.9588 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.5781, allocations: 0 / 0.9588 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.432e-05/0.5781, allocations: 86.42 kB / 0.9589 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.57e-05/0.5782, allocations: 92.39 kB / 0.959 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.1e-05/0.5782, allocations: 1.125 kB / 0.959 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.974e-05/0.5782, allocations: 1.125 kB / 0.959 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.247e-06/0.5782, allocations: 13.12 kB / 0.959 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-06/0.5782, allocations: 1.188 kB / 0.959 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.745e-05/0.5783, allocations: 119.4 kB / 0.9591 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5783, allocations: 0 / 0.9591 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001726/0.5785, allocations: 6.812 kB / 0.9591 GB, free: 4.012 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.0001774/0.5787, allocations: 0.6161 MB / 0.9597 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 5.714e-05/0.5787, allocations: 18.08 kB / 0.9597 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.5787, allocations: 4.156 kB / 0.9597 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.398e-06/0.5787, allocations: 8.312 kB / 0.9597 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001367/0.5789, allocations: 7.219 kB / 0.9597 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007139/0.5796, allocations: 1.349 MB / 0.961 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.009e-05/0.5797, allocations: 0.6976 MB / 0.9617 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.932e-05/0.5797, allocations: 5.062 kB / 0.9617 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.224e-05/0.5798, allocations: 28.02 kB / 0.9618 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/0.5798, allocations: 0 / 0.9618 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6327/1.213, allocations: 1.347 MB / 0.9631 GB, free: 0.7461 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001506/1.213, allocations: 210.9 kB / 0.9633 GB, free: 500 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.466/3.678, allocations: 0 / 0.9633 GB, free: 500 kB / 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/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) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches