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.005239/0.005239, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001453/0.001453, allocations: 192.4 kB / 16.67 MB, free: 5.969 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.14 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.533/2.533, allocations: 469.8 MB / 0.7425 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 63.91 kB / 1.065 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6695/0.6715, allocations: 159.2 MB / 1.22 GB, free: 2.078 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_gal): time 0.001742/0.6732, allocations: 0.8118 MB / 1.221 GB, free: 1.27 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 9.932e-05/0.6733, allocations: 43.78 kB / 1.221 GB, free: 1.227 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.576e-05/0.6734, allocations: 0 / 1.221 GB, free: 1.227 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.569e-05/0.6734, allocations: 15.86 kB / 1.221 GB, free: 1.211 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.455e-05/0.6735, allocations: 7.875 kB / 1.221 GB, free: 1.203 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 4.238e-05/0.6736, allocations: 19.98 kB / 1.221 GB, free: 1.184 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.877e-05/0.6737, allocations: 55.84 kB / 1.221 GB, free: 1.129 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001282/0.6738, allocations: 55.84 kB / 1.221 GB, free: 1.074 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.734e-05/0.6739, allocations: 27.75 kB / 1.221 GB, free: 1.047 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.048e-05/0.6739, allocations: 39.78 kB / 1.221 GB, free: 1.008 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.647e-05/0.6739, allocations: 7.984 kB / 1.221 GB, free: 1 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.104e-05/0.674, allocations: 8 kB / 1.221 GB, free: 0.9922 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.656e-05/0.674, allocations: 4 kB / 1.221 GB, free: 0.9883 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.972e-05/0.674, allocations: 39.73 kB / 1.221 GB, free: 0.9492 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001085/0.6741, allocations: 71.31 kB / 1.221 GB, free: 0.8828 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.6741, allocations: 8 kB / 1.221 GB, free: 0.875 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.222e-06/0.6742, allocations: 0 / 1.221 GB, free: 0.875 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.118e-06/0.6742, allocations: 0 / 1.221 GB, free: 0.875 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.0003939/0.6746, allocations: 375.1 kB / 1.222 GB, free: 468 kB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.6746, allocations: 12.03 kB / 1.222 GB, free: 456 kB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.848e-05/0.6746, allocations: 34.75 kB / 1.222 GB, free: 412 kB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.693e-05/0.6747, allocations: 20.83 kB / 1.222 GB, free: 392 kB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001866/0.6749, allocations: 196.2 kB / 1.222 GB, free: 156 kB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.6749, allocations: 12.38 kB / 1.222 GB, free: 144 kB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.122e-05/0.6749, allocations: 8.312 kB / 1.222 GB, free: 136 kB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001404/0.6751, allocations: 95.86 kB / 1.222 GB, free: 28 kB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.6751, allocations: 3.938 kB / 1.222 GB, free: 24 kB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-06/0.6751, allocations: 0 / 1.222 GB, free: 24 kB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.6751, allocations: 0 / 1.222 GB, free: 24 kB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.693e-05/0.6752, allocations: 43.91 kB / 1.222 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004863/0.6757, allocations: 432.8 kB / 1.223 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 5.476e-05/0.6757, allocations: 45.19 kB / 1.223 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.507e-05/0.6758, allocations: 21.84 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 5.59e-06/0.6758, allocations: 0 / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.6758, allocations: 34.56 kB / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 8.51e-07/0.6758, allocations: 3.938 kB / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0001456/0.676, allocations: 61.52 kB / 1.223 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.676, allocations: 77.11 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.6762, allocations: 161.1 kB / 1.223 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.484e-05/0.6762, allocations: 25.7 kB / 1.223 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.027e-05/0.6763, allocations: 100.3 kB / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 8.496e-06/0.6763, allocations: 11.95 kB / 1.223 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.994e-05/0.6763, allocations: 17.67 kB / 1.223 GB, free: 14.87 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.6765, allocations: 322.8 kB / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.728e-05/0.6765, allocations: 8 kB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.191e-05/0.6765, allocations: 17.66 kB / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.293e-05/0.6766, allocations: 33.7 kB / 1.223 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.6766, allocations: 0 / 1.223 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.91e-05/0.6766, allocations: 61.53 kB / 1.223 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.6767, allocations: 9.812 kB / 1.224 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.6767, allocations: 0 / 1.224 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.6767, allocations: 0 / 1.224 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.326e-05/0.6767, allocations: 11.98 kB / 1.224 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.6768, allocations: 0 / 1.224 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.647e-05/0.6768, allocations: 3.938 kB / 1.224 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.453e-06/0.6768, allocations: 4 kB / 1.224 GB, free: 14.38 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.687e-05/0.6769, allocations: 117.9 kB / 1.224 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.056e-05/0.6769, allocations: 11.89 kB / 1.224 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.136e-05/0.6769, allocations: 7.875 kB / 1.224 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.677, allocations: 4 kB / 1.224 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.677, allocations: 3.984 kB / 1.224 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.677, allocations: 0 / 1.224 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003822/0.6774, allocations: 482.7 kB / 1.224 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.6774, allocations: 0 / 1.224 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.809e-05/0.6774, allocations: 4 kB / 1.224 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.6774, allocations: 0 / 1.224 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.879e-06/0.6774, allocations: 0 / 1.224 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.6774, allocations: 3.938 kB / 1.224 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.6774, allocations: 7.984 kB / 1.224 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.736e-05/0.6775, allocations: 82.03 kB / 1.224 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.553e-05/0.6776, allocations: 101 kB / 1.224 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.152e-05/0.6776, allocations: 0 / 1.224 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.826e-05/0.6776, allocations: 0 / 1.224 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.184e-05/0.6776, allocations: 3.984 kB / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.6776, allocations: 4 kB / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.764e-05/0.6777, allocations: 115.2 kB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6777, allocations: 4 kB / 1.224 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001711/0.6779, allocations: 4 kB / 1.224 GB, free: 13.33 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.0003615/0.6783, allocations: 0.6215 MB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 7.295e-05/0.6784, allocations: 19.94 kB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.6784, allocations: 4.156 kB / 1.225 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.09e-05/0.6784, allocations: 4 kB / 1.225 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001345/0.6785, allocations: 4 kB / 1.225 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001118/0.6796, allocations: 1.333 MB / 1.226 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002777/0.6799, allocations: 0.6968 MB / 1.227 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.035e-05/0.68, allocations: 12.36 kB / 1.227 GB, free: 10.48 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.184e-05/0.68, allocations: 27.42 kB / 1.227 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of SimCode: time 2.2e-07/0.68, allocations: 0 / 1.227 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9392/1.619, allocations: 1.562 MB / 1.229 GB, free: 8.984 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.91/9.53, allocations: 20.39 kB / 1.229 GB, free: 8.965 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_gal_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_UnitConversions_Validation_To_gal_fmu --startTime=0 --stopTime=10 --timeout=400 --tolerance=1e-06 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.mat","/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