Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Controls_OBC_UnitConversions_Validation_To_gal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_gal,fileNamePrefix="Buildings_10_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.001429/0.001429, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001666/0.001665, allocations: 198.2 kB / 16.14 MB, free: 6.574 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.281/1.281, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.408/2.408, allocations: 437 MB / 0.7099 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 59.91 kB / 0.8687 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5807/0.5821, allocations: 151.6 MB / 1.017 GB, free: 2.816 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_gal): time 0.002013/0.5841, allocations: 0.8922 MB / 1.018 GB, free: 1.93 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0001184/0.5842, allocations: 43.78 kB / 1.018 GB, free: 1.887 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.129e-05/0.5843, allocations: 0 / 1.018 GB, free: 1.887 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.36e-05/0.5844, allocations: 3.938 kB / 1.018 GB, free: 1.883 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.868e-05/0.5844, allocations: 4 kB / 1.018 GB, free: 1.879 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 4.331e-05/0.5845, allocations: 15.98 kB / 1.018 GB, free: 1.863 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.234e-05/0.5846, allocations: 63.7 kB / 1.018 GB, free: 1.801 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.5847, allocations: 47.94 kB / 1.018 GB, free: 1.754 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.128e-05/0.5848, allocations: 23.88 kB / 1.018 GB, free: 1.73 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.991e-05/0.5848, allocations: 23.84 kB / 1.018 GB, free: 1.707 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.592e-05/0.5849, allocations: 11.94 kB / 1.018 GB, free: 1.695 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.828e-06/0.5849, allocations: 4 kB / 1.018 GB, free: 1.691 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.801e-05/0.5849, allocations: 8 kB / 1.018 GB, free: 1.684 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.833e-05/0.5849, allocations: 35.73 kB / 1.018 GB, free: 1.648 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.747e-05/0.585, allocations: 66.02 kB / 1.018 GB, free: 1.586 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.585, allocations: 3.938 kB / 1.018 GB, free: 1.582 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.062e-06/0.585, allocations: 0 / 1.018 GB, free: 1.582 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.449e-06/0.585, allocations: 0 / 1.018 GB, free: 1.582 MB / 0.7637 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.0003597/0.5854, allocations: 379.3 kB / 1.018 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.5855, allocations: 12.03 kB / 1.018 GB, free: 1.148 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.214e-05/0.5855, allocations: 38.75 kB / 1.018 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.806e-05/0.5855, allocations: 8.844 kB / 1.018 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001787/0.5857, allocations: 200.1 kB / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.5857, allocations: 4.375 kB / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.114e-05/0.5857, allocations: 8.375 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001526/0.5859, allocations: 91.8 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.5859, allocations: 3.938 kB / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.5859, allocations: 8 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.5859, allocations: 4 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.689e-05/0.586, allocations: 39.92 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005053/0.5865, allocations: 436.6 kB / 1.019 GB, free: 216 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 5.261e-05/0.5866, allocations: 45.12 kB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.56e-05/0.5866, allocations: 21.84 kB / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 7.564e-06/0.5867, allocations: 0 / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.461e-05/0.5867, allocations: 30.56 kB / 1.019 GB, free: 84 kB / 0.7637 GB Notification: Performance of pre-optimization done (n=2): time 9.91e-07/0.5867, allocations: 0 / 1.019 GB, free: 84 kB / 0.7637 GB Notification: Performance of matching and sorting (n=2): time 0.0001825/0.5869, allocations: 69.69 kB / 1.019 GB, free: 8 kB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.642e-05/0.587, allocations: 77.11 kB / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.5871, allocations: 160.1 kB / 1.019 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.086e-05/0.5871, allocations: 25.7 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.419e-05/0.5872, allocations: 108 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.304e-06/0.5872, allocations: 3.906 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.264e-05/0.5873, allocations: 17.72 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.5874, allocations: 322.8 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.669e-05/0.5874, allocations: 4.031 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.236e-05/0.5874, allocations: 21.72 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.923e-05/0.5875, allocations: 25.66 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.5875, allocations: 4 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.652e-05/0.5876, allocations: 61.53 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.5876, allocations: 11.94 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.5876, allocations: 4.062 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.5876, allocations: 96 / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.464e-05/0.5877, allocations: 7.984 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.5877, allocations: 7.984 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.901e-05/0.5877, allocations: 7.844 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.5877, allocations: 4 kB / 1.02 GB, free: 15.08 MB / 0.7794 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.271e-05/0.5878, allocations: 110.4 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.246e-05/0.5879, allocations: 11.84 kB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.65e-05/0.5879, allocations: 15.88 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.5879, allocations: 0 / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.5879, allocations: 4 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.5879, allocations: 0 / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003529/0.5883, allocations: 470.8 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.5883, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.011e-05/0.5883, allocations: 4 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.5883, allocations: 0 / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-06/0.5883, allocations: 4.062 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.5884, allocations: 0 / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.5884, allocations: 0 / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.944e-05/0.5884, allocations: 89.77 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.581e-05/0.5885, allocations: 84.95 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.492e-05/0.5885, allocations: 4 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.155e-05/0.5885, allocations: 4.031 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.191e-05/0.5886, allocations: 3.938 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.5886, allocations: 3.984 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.086e-05/0.5887, allocations: 120.9 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5887, allocations: 0 / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001819/0.5888, allocations: 8 kB / 1.021 GB, free: 14.05 MB / 0.7794 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.0003252/0.5892, allocations: 0.617 MB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 8.031e-05/0.5893, allocations: 15.98 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.5893, allocations: 0 / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.118e-05/0.5893, allocations: 11.94 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001564/0.5894, allocations: 8 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.5905, allocations: 1.348 MB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002124/0.5907, allocations: 0.7004 MB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.206e-05/0.5908, allocations: 4.438 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.391e-05/0.5908, allocations: 23.42 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of SimCode: time 2.6e-07/0.5908, allocations: 0 / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009916/0.6007, allocations: 1.42 MB / 1.025 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/0.6009, allocations: 208.8 kB / 1.025 GB, free: 9.582 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.483/2.084, allocations: 0 / 1.025 GB, free: 9.582 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_To_gal_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_To_gal.fmu > Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_UnitConversions_Validation_To_gal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches