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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.004817/0.004817, allocations: 102 kB / 15.73 MB, free: 6.02 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.001142/0.001142, allocations: 194.3 kB / 16.67 MB, free: 5.93 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.17/2.17, allocations: 390.3 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002553/0.002553, allocations: 63.91 kB / 0.9504 GB, free: 8.125 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7044/0.7069, allocations: 140.4 MB / 1.087 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.001704/0.7087, allocations: 0.8308 MB / 1.088 GB, free: 4.969 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 9.726e-05/0.7088, allocations: 40.53 kB / 1.088 GB, free: 4.938 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.645e-05/0.7089, allocations: 1.031 kB / 1.088 GB, free: 4.938 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.528e-05/0.7089, allocations: 9.297 kB / 1.088 GB, free: 4.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.346e-05/0.709, allocations: 9.797 kB / 1.088 GB, free: 4.922 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 4.944e-05/0.709, allocations: 21.05 kB / 1.088 GB, free: 4.91 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.969e-05/0.7091, allocations: 63.11 kB / 1.088 GB, free: 4.879 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.7092, allocations: 41.11 kB / 1.088 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.347e-05/0.7093, allocations: 22.34 kB / 1.088 GB, free: 4.848 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.391e-05/0.7093, allocations: 30.27 kB / 1.089 GB, free: 4.828 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.9e-05/0.7094, allocations: 6.406 kB / 1.089 GB, free: 4.828 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.588e-06/0.7094, allocations: 5.688 kB / 1.089 GB, free: 4.828 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.848e-05/0.7094, allocations: 19.78 kB / 1.089 GB, free: 4.812 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.129e-05/0.7094, allocations: 32.67 kB / 1.089 GB, free: 4.789 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001097/0.7096, allocations: 75.47 kB / 1.089 GB, free: 4.758 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.7096, allocations: 0.7031 kB / 1.089 GB, free: 4.758 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.453e-06/0.7096, allocations: 0 / 1.089 GB, free: 4.758 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.7096, allocations: 1.062 kB / 1.089 GB, free: 4.758 MB / 0.8575 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.0002998/0.7099, allocations: 384 kB / 1.089 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.7099, allocations: 13.19 kB / 1.089 GB, free: 4.359 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.645e-05/0.71, allocations: 39.2 kB / 1.089 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.55e-05/0.71, allocations: 10.14 kB / 1.089 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.7101, allocations: 196.3 kB / 1.089 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.814e-06/0.7101, allocations: 7.656 kB / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.459e-05/0.7102, allocations: 5.719 kB / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001336/0.7103, allocations: 94.19 kB / 1.089 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.7103, allocations: 4.547 kB / 1.089 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.766e-06/0.7103, allocations: 1.094 kB / 1.089 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.7103, allocations: 2.219 kB / 1.089 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.123e-05/0.7104, allocations: 43.42 kB / 1.089 GB, free: 4 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003977/0.7108, allocations: 434.3 kB / 1.09 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 3.917e-05/0.7109, allocations: 50.39 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.833e-05/0.7109, allocations: 20.34 kB / 1.09 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 6.182e-06/0.7109, allocations: 1.406 kB / 1.09 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.077e-05/0.7109, allocations: 32.55 kB / 1.09 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.7109, allocations: 4 kB / 1.09 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.000143/0.7111, allocations: 56.03 kB / 1.09 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.025e-05/0.7111, allocations: 79.05 kB / 1.09 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.7112, allocations: 162.6 kB / 1.09 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.859e-06/0.7112, allocations: 25.7 kB / 1.09 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.734e-05/0.7113, allocations: 104.5 kB / 1.09 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.893e-06/0.7113, allocations: 9.812 kB / 1.09 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.632e-05/0.7113, allocations: 13.8 kB / 1.09 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.57e-05/0.7114, allocations: 324.2 kB / 1.091 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.702e-05/0.7114, allocations: 7.828 kB / 1.091 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.876e-05/0.7114, allocations: 20.58 kB / 1.091 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.321e-05/0.7114, allocations: 26.38 kB / 1.091 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.7115, allocations: 1.094 kB / 1.091 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.198e-05/0.7115, allocations: 61.3 kB / 1.091 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.7115, allocations: 9.188 kB / 1.091 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.7116, allocations: 1.031 kB / 1.091 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.7116, allocations: 1.625 kB / 1.091 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.462e-05/0.7116, allocations: 5.672 kB / 1.091 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.7116, allocations: 1.531 kB / 1.091 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.049e-05/0.7117, allocations: 10.14 kB / 1.091 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-06/0.7117, allocations: 1 kB / 1.091 GB, free: 2.633 MB / 0.8575 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.553e-05/0.7117, allocations: 115.4 kB / 1.091 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.379e-05/0.7118, allocations: 14.98 kB / 1.091 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.044e-05/0.7118, allocations: 12.61 kB / 1.091 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.7118, allocations: 5.625 kB / 1.091 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.7118, allocations: 1.219 kB / 1.091 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.7118, allocations: 0 / 1.091 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000262/0.7121, allocations: 479.3 kB / 1.091 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.7121, allocations: 1.125 kB / 1.091 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.022e-05/0.7121, allocations: 7.766 kB / 1.091 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.7121, allocations: 7.875 kB / 1.091 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-06/0.7121, allocations: 1.734 kB / 1.091 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.113e-06/0.7122, allocations: 0.9062 kB / 1.091 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.7122, allocations: 0.9375 kB / 1.091 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.574e-05/0.7122, allocations: 76.2 kB / 1.092 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.865e-05/0.7123, allocations: 94.81 kB / 1.092 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.7123, allocations: 2.25 kB / 1.092 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.126e-05/0.7123, allocations: 1 kB / 1.092 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.392e-05/0.7123, allocations: 1.672 kB / 1.092 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-06/0.7123, allocations: 1.094 kB / 1.092 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.988e-05/0.7124, allocations: 121.9 kB / 1.092 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7124, allocations: 0 / 1.092 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002009/0.7126, allocations: 11.02 kB / 1.092 GB, free: 1.707 MB / 0.8575 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.0002019/0.7128, allocations: 0.6193 MB / 1.092 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 7.22e-05/0.7129, allocations: 20.38 kB / 1.092 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.7129, allocations: 0 / 1.092 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.058e-05/0.7129, allocations: 4.953 kB / 1.092 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001469/0.7131, allocations: 12.02 kB / 1.092 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009643/0.714, allocations: 1.324 MB / 1.094 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002094/0.7143, allocations: 0.697 MB / 1.094 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.055e-05/0.7143, allocations: 10.45 kB / 1.094 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.14e-05/0.7144, allocations: 26.44 kB / 1.094 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/0.7144, allocations: 0 / 1.094 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0157/0.7301, allocations: 1.582 MB / 1.096 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.031/7.761, allocations: 1.188 kB / 1.096 GB, free: 14.74 MB / 0.8731 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 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.csv","/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