Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_gal,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_UnitConversions_Validation_To_gal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_gal,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_UnitConversions_Validation_To_gal",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.007312/0.007312, allocations: 98.16 kB / 15.73 MB, free: 6.012 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.002062/0.002062, allocations: 197 kB / 16.68 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.779/2.779, allocations: 469.8 MB / 0.7425 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002016/0.002017, allocations: 67.89 kB / 1.065 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6753/0.6774, allocations: 159.1 MB / 1.22 GB, free: 2.047 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_gal): time 0.001885/0.6793, allocations: 0.8182 MB / 1.221 GB, free: 1.234 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0001132/0.6794, allocations: 43.78 kB / 1.221 GB, free: 1.191 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.051e-05/0.6795, allocations: 0 / 1.221 GB, free: 1.191 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.353e-05/0.6795, allocations: 7.922 kB / 1.221 GB, free: 1.184 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.532e-05/0.6796, allocations: 11.88 kB / 1.221 GB, free: 1.172 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 4.55e-05/0.6797, allocations: 15.98 kB / 1.221 GB, free: 1.156 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.6798, allocations: 59.84 kB / 1.221 GB, free: 1.098 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001355/0.6799, allocations: 59.77 kB / 1.221 GB, free: 1.039 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.122e-05/0.68, allocations: 23.88 kB / 1.221 GB, free: 1.016 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.375e-05/0.68, allocations: 27.84 kB / 1.221 GB, free: 0.9883 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.6801, allocations: 8 kB / 1.221 GB, free: 0.9805 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.673e-05/0.6801, allocations: 8 kB / 1.221 GB, free: 0.9727 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.897e-05/0.6801, allocations: 11.94 kB / 1.221 GB, free: 0.9609 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.608e-05/0.6802, allocations: 39.73 kB / 1.221 GB, free: 0.9219 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001138/0.6803, allocations: 71.3 kB / 1.221 GB, free: 0.8555 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.6803, allocations: 4 kB / 1.221 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.583e-06/0.6803, allocations: 0 / 1.221 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.648e-06/0.6803, allocations: 0 / 1.221 GB, free: 0.8516 MB / 0.9356 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.0004417/0.6807, allocations: 383.1 kB / 1.222 GB, free: 436 kB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.6808, allocations: 12.03 kB / 1.222 GB, free: 424 kB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.719e-05/0.6808, allocations: 34.75 kB / 1.222 GB, free: 380 kB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.82e-05/0.6809, allocations: 12.84 kB / 1.222 GB, free: 368 kB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002014/0.6811, allocations: 200.1 kB / 1.222 GB, free: 128 kB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.6811, allocations: 12.36 kB / 1.222 GB, free: 116 kB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.6811, allocations: 8.375 kB / 1.222 GB, free: 108 kB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001563/0.6813, allocations: 91.86 kB / 1.222 GB, free: 4 kB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.6813, allocations: 4.203 kB / 1.222 GB, free: 16 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.6813, allocations: 3.938 kB / 1.222 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.6813, allocations: 0 / 1.222 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.015e-05/0.6814, allocations: 39.92 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005299/0.682, allocations: 440.6 kB / 1.223 GB, free: 15.47 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 6.333e-05/0.682, allocations: 49.22 kB / 1.223 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.537e-05/0.6821, allocations: 17.84 kB / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 9.418e-06/0.6821, allocations: 0 / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.6821, allocations: 38.56 kB / 1.223 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.6821, allocations: 0 / 1.223 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0001644/0.6823, allocations: 61.52 kB / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.6824, allocations: 77.11 kB / 1.223 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.6825, allocations: 158.2 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.6825, allocations: 25.7 kB / 1.223 GB, free: 14.97 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.746e-05/0.6826, allocations: 104.3 kB / 1.223 GB, free: 14.87 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 9.098e-06/0.6826, allocations: 3.953 kB / 1.223 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.382e-05/0.6827, allocations: 21.67 kB / 1.223 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.6828, allocations: 326.8 kB / 1.223 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.684e-05/0.6828, allocations: 3.938 kB / 1.223 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.438e-05/0.6829, allocations: 21.72 kB / 1.223 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.315e-05/0.6829, allocations: 25.72 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.6829, allocations: 7.984 kB / 1.223 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.617e-05/0.683, allocations: 57.59 kB / 1.223 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.683, allocations: 8 kB / 1.224 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.6831, allocations: 3.938 kB / 1.224 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.6831, allocations: 0 / 1.224 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.294e-05/0.6831, allocations: 4 kB / 1.224 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.6831, allocations: 7.984 kB / 1.224 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.969e-05/0.6832, allocations: 3.938 kB / 1.224 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.541e-06/0.6832, allocations: 8.062 kB / 1.224 GB, free: 14.34 MB / 0.9512 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 7.942e-05/0.6833, allocations: 109.8 kB / 1.224 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.03e-05/0.6833, allocations: 7.953 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.373e-05/0.6834, allocations: 15.81 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.6834, allocations: 0 / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.6834, allocations: 4 kB / 1.224 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.6834, allocations: 3.984 kB / 1.224 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004122/0.6838, allocations: 474.7 kB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.6838, allocations: 0 / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.307e-05/0.6838, allocations: 7.938 kB / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.6838, allocations: 0 / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-06/0.6839, allocations: 0 / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.6839, allocations: 0 / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.6839, allocations: 0 / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.684, allocations: 89.94 kB / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.566e-05/0.684, allocations: 81.06 kB / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.516e-05/0.6841, allocations: 4 kB / 1.224 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.051e-05/0.6841, allocations: 0 / 1.224 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.346e-05/0.6841, allocations: 11.92 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-06/0.6841, allocations: 0 / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.582e-05/0.6842, allocations: 117.5 kB / 1.224 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6842, allocations: 3.938 kB / 1.224 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001966/0.6844, allocations: 12.03 kB / 1.224 GB, free: 13.3 MB / 0.9512 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.0004055/0.6848, allocations: 0.6138 MB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 8.153e-05/0.6849, allocations: 23.86 kB / 1.225 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.6849, allocations: 4.156 kB / 1.225 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.054e-05/0.685, allocations: 8 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001486/0.6851, allocations: 9.812 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.6863, allocations: 1.331 MB / 1.226 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.6867, allocations: 0.6968 MB / 1.227 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.34e-05/0.6867, allocations: 12.5 kB / 1.227 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.608e-05/0.6868, allocations: 23.42 kB / 1.227 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of SimCode: time 2.61e-07/0.6868, allocations: 0 / 1.227 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02237/0.7091, allocations: 1.571 MB / 1.229 GB, free: 8.953 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.648/8.357, allocations: 20.38 kB / 1.229 GB, free: 8.934 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_gal_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_11_Buildings_Controls_OBC_UnitConversions_Validation_To_gal.fmu > Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_gal_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_UnitConversions_Validation_To_gal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches