Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_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.From_gal,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_gal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_gal,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_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.0008901/0.0008901, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.005057/0.005057, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.243/1.243, allocations: 223.3 MB / 240.3 MB, free: 5.328 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.378/2.378, allocations: 437.8 MB / 0.7121 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.0003321, allocations: 12 kB / 0.873 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5272/0.5275, allocations: 153.8 MB / 1.023 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_gal): time 0.0009178/0.5285, allocations: 0.5431 MB / 1.024 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 9.203e-05/0.5286, allocations: 39.78 kB / 1.024 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.073e-05/0.5287, allocations: 4 kB / 1.024 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.057e-05/0.5287, allocations: 7.922 kB / 1.024 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.502e-05/0.5287, allocations: 3.938 kB / 1.024 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 3.711e-05/0.5288, allocations: 12 kB / 1.024 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.211e-05/0.5289, allocations: 63.84 kB / 1.024 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.529, allocations: 31.97 kB / 1.024 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.242e-05/0.5291, allocations: 27.8 kB / 1.024 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.558e-05/0.5291, allocations: 15.86 kB / 1.024 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.452e-05/0.5291, allocations: 4 kB / 1.024 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.516e-06/0.5291, allocations: 4 kB / 1.024 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.648e-05/0.5292, allocations: 7.938 kB / 1.024 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.741e-05/0.5292, allocations: 45.52 kB / 1.024 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 8.737e-05/0.5293, allocations: 78.06 kB / 1.024 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.5293, allocations: 0 / 1.024 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.543e-06/0.5293, allocations: 0 / 1.024 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.347e-06/0.5293, allocations: 0 / 1.024 GB, free: 15.11 MB / 0.7794 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.0003527/0.5297, allocations: 364.6 kB / 1.024 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.5297, allocations: 16.03 kB / 1.024 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.402e-05/0.5298, allocations: 38.75 kB / 1.024 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.685e-05/0.5298, allocations: 16.83 kB / 1.024 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/0.53, allocations: 188.2 kB / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.947e-06/0.53, allocations: 8.375 kB / 1.025 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.53, allocations: 8.375 kB / 1.025 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00014/0.5302, allocations: 93.67 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.5302, allocations: 7.875 kB / 1.025 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-06/0.5302, allocations: 4 kB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.5302, allocations: 0 / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.029e-05/0.5303, allocations: 39.97 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004554/0.5307, allocations: 444.6 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.654e-05/0.5308, allocations: 41.22 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.987e-05/0.5308, allocations: 13.78 kB / 1.025 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.217e-06/0.5308, allocations: 0 / 1.025 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.5309, allocations: 42.5 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 2.003e-06/0.5309, allocations: 3.984 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001507/0.531, allocations: 61.47 kB / 1.025 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.626e-05/0.5311, allocations: 81.05 kB / 1.025 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.5312, allocations: 164.3 kB / 1.026 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.5312, allocations: 25.7 kB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.669e-05/0.5313, allocations: 104 kB / 1.026 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.347e-06/0.5313, allocations: 7.906 kB / 1.026 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.18e-05/0.5313, allocations: 13.72 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.939e-05/0.5314, allocations: 319.1 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.55e-05/0.5314, allocations: 8 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.108e-05/0.5315, allocations: 17.72 kB / 1.026 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.925e-05/0.5315, allocations: 29.7 kB / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.5315, allocations: 3.938 kB / 1.026 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.599e-05/0.5316, allocations: 53.61 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.5316, allocations: 12 kB / 1.026 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.5316, allocations: 4 kB / 1.026 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.078e-06/0.5316, allocations: 0 / 1.026 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.405e-05/0.5317, allocations: 7.984 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.5317, allocations: 3.938 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.888e-05/0.5318, allocations: 7.906 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.516e-06/0.5318, allocations: 0 / 1.026 GB, free: 12.63 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 6.519e-05/0.5318, allocations: 114.4 kB / 1.026 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.269e-05/0.5319, allocations: 11.84 kB / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.075e-05/0.5319, allocations: 11.88 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.5319, allocations: 0 / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.5319, allocations: 0 / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.5319, allocations: 7.984 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003226/0.5323, allocations: 466.8 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.5323, allocations: 4 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.885e-05/0.5323, allocations: 0 / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.5323, allocations: 12 kB / 1.027 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.649e-06/0.5323, allocations: 0 / 1.027 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.5323, allocations: 0 / 1.027 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.5323, allocations: 3.984 kB / 1.027 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.349e-05/0.5324, allocations: 85.77 kB / 1.027 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.373e-05/0.5325, allocations: 88.95 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.058e-05/0.5325, allocations: 0 / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.075e-05/0.5325, allocations: 8.031 kB / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.261e-05/0.5325, allocations: 3.984 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-06/0.5325, allocations: 0 / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.205e-05/0.5326, allocations: 116.9 kB / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5326, allocations: 0 / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001773/0.5328, allocations: 12 kB / 1.027 GB, free: 11.59 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.0002872/0.5331, allocations: 0.6208 MB / 1.028 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 6.155e-05/0.5331, allocations: 19.92 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.5332, allocations: 0 / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.151e-05/0.5332, allocations: 8 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001463/0.5333, allocations: 8 kB / 1.028 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009688/0.5343, allocations: 1.339 MB / 1.029 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001944/0.5345, allocations: 0.6965 MB / 1.03 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.729e-05/0.5345, allocations: 4.438 kB / 1.03 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.835e-05/0.5346, allocations: 27.42 kB / 1.03 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of SimCode: time 1.873e-06/0.5346, allocations: 0 / 1.03 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.00996/0.5445, allocations: 1.36 MB / 1.031 GB, free: 7.477 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001746/0.5447, allocations: 207.9 kB / 1.031 GB, free: 7.223 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.512/2.057, allocations: 0 / 1.031 GB, free: 7.223 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_gal_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_gal.fmu > Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_UnitConversions_Validation_From_gal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_gal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches