Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.To_gal,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_gal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_gal,fileNamePrefix="Buildings_9_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.001539/0.001539, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001827/0.001827, allocations: 191.2 kB / 16.25 MB, free: 6.625 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.317/1.317, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.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.266/2.266, allocations: 390.3 MB / 0.6644 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 63.91 kB / 0.8122 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5363/0.5376, allocations: 140.4 MB / 0.9492 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_gal): time 0.001733/0.5393, allocations: 0.8826 MB / 0.9501 GB, free: 8.477 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 8.551e-05/0.5394, allocations: 45.22 kB / 0.9501 GB, free: 8.438 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.948e-05/0.5395, allocations: 1.375 kB / 0.9501 GB, free: 8.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.639e-05/0.5395, allocations: 3.938 kB / 0.9501 GB, free: 8.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.078e-05/0.5396, allocations: 5.312 kB / 0.9501 GB, free: 8.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 3.651e-05/0.5397, allocations: 18.73 kB / 0.9502 GB, free: 8.414 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.747e-05/0.5398, allocations: 59.62 kB / 0.9502 GB, free: 8.379 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.5399, allocations: 40.53 kB / 0.9503 GB, free: 8.355 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.14e-05/0.5399, allocations: 31.75 kB / 0.9503 GB, free: 8.332 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.23e-05/0.54, allocations: 29.05 kB / 0.9503 GB, free: 8.309 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.686e-05/0.54, allocations: 6.688 kB / 0.9503 GB, free: 8.309 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.024e-05/0.54, allocations: 9.625 kB / 0.9503 GB, free: 8.305 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.702e-05/0.54, allocations: 18.27 kB / 0.9504 GB, free: 8.289 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.188e-05/0.5401, allocations: 29.97 kB / 0.9504 GB, free: 8.266 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.082e-05/0.5402, allocations: 75.28 kB / 0.9505 GB, free: 8.207 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.5402, allocations: 0 / 0.9505 GB, free: 8.207 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.294e-06/0.5402, allocations: 5.156 kB / 0.9505 GB, free: 8.203 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.5402, allocations: 0 / 0.9505 GB, free: 8.203 MB / 0.7169 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.0003118/0.5405, allocations: 384.4 kB / 0.9508 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.5406, allocations: 9.562 kB / 0.9508 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.763e-05/0.5406, allocations: 45.3 kB / 0.9509 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.438e-05/0.5406, allocations: 12.55 kB / 0.9509 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.5408, allocations: 190.8 kB / 0.9511 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.5408, allocations: 4.062 kB / 0.9511 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.077e-05/0.5408, allocations: 8.219 kB / 0.9511 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.5409, allocations: 93.41 kB / 0.9512 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.5409, allocations: 5.469 kB / 0.9512 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.757e-06/0.541, allocations: 3.938 kB / 0.9512 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.541, allocations: 6.469 kB / 0.9512 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.747e-05/0.541, allocations: 35.42 kB / 0.9512 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003632/0.5414, allocations: 428.7 kB / 0.9516 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.852e-05/0.5415, allocations: 45.62 kB / 0.9517 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.135e-05/0.5415, allocations: 20.52 kB / 0.9517 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.175e-06/0.5415, allocations: 0 / 0.9517 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.5415, allocations: 39.88 kB / 0.9517 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 8.22e-07/0.5415, allocations: 0 / 0.9517 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001345/0.5417, allocations: 54.52 kB / 0.9518 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.31e-05/0.5417, allocations: 86.36 kB / 0.9519 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.5418, allocations: 163 kB / 0.952 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.532e-06/0.5418, allocations: 26.89 kB / 0.952 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.926e-05/0.5419, allocations: 108.7 kB / 0.9521 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 8.386e-06/0.5419, allocations: 9.047 kB / 0.9522 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.646e-05/0.5419, allocations: 16.41 kB / 0.9522 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.611e-05/0.542, allocations: 321.8 kB / 0.9525 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.562e-05/0.542, allocations: 6.719 kB / 0.9525 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.642e-05/0.542, allocations: 22.7 kB / 0.9525 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.244e-05/0.542, allocations: 23.16 kB / 0.9525 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.542, allocations: 0 / 0.9525 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.861e-05/0.5421, allocations: 59.17 kB / 0.9526 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.5421, allocations: 15.55 kB / 0.9526 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.5421, allocations: 4.062 kB / 0.9526 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.759e-06/0.5422, allocations: 1.312 kB / 0.9526 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.955e-05/0.5422, allocations: 9.969 kB / 0.9526 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.5422, allocations: 0 / 0.9526 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.556e-05/0.5423, allocations: 2.562 kB / 0.9526 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.5423, allocations: 1.375 kB / 0.9526 GB, free: 5.988 MB / 0.7169 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.575e-05/0.5423, allocations: 121.6 kB / 0.9527 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.959e-05/0.5424, allocations: 12.12 kB / 0.9527 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.456e-05/0.5424, allocations: 14.58 kB / 0.9528 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.5424, allocations: 5.594 kB / 0.9528 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.5424, allocations: 0 / 0.9528 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.5424, allocations: 0 / 0.9528 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002397/0.5427, allocations: 471.2 kB / 0.9532 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.5427, allocations: 0 / 0.9532 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.825e-05/0.5427, allocations: 2.812 kB / 0.9532 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.5427, allocations: 1.375 kB / 0.9532 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.111e-06/0.5427, allocations: 5.469 kB / 0.9532 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.5427, allocations: 0 / 0.9532 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.5427, allocations: 1.406 kB / 0.9532 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.824e-05/0.5428, allocations: 85.8 kB / 0.9533 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.677e-05/0.5428, allocations: 92.53 kB / 0.9534 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.199e-05/0.5428, allocations: 0 / 0.9534 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.003e-05/0.5429, allocations: 5.312 kB / 0.9534 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.217e-06/0.5429, allocations: 9.594 kB / 0.9534 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.295e-06/0.5429, allocations: 0.9688 kB / 0.9534 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.955e-05/0.5429, allocations: 120.5 kB / 0.9535 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.543, allocations: 0 / 0.9535 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001803/0.5431, allocations: 6.281 kB / 0.9535 GB, free: 5.031 MB / 0.7169 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.000205/0.5433, allocations: 0.6178 MB / 0.9541 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.809e-05/0.5434, allocations: 17.88 kB / 0.9542 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.5434, allocations: 1.094 kB / 0.9542 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.113e-05/0.5435, allocations: 4.469 kB / 0.9542 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001469/0.5436, allocations: 6.375 kB / 0.9542 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008282/0.5444, allocations: 1.349 MB / 0.9555 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.551e-05/0.5446, allocations: 0.6983 MB / 0.9562 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.117e-05/0.5446, allocations: 13.84 kB / 0.9562 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.378e-05/0.5446, allocations: 18.62 kB / 0.9562 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.5446, allocations: 0 / 0.9562 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4626/1.007, allocations: 1.471 MB / 0.9576 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000197/1.007, allocations: 206 kB / 0.9578 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.063/3.071, allocations: 2.672 kB / 0.9578 GB, free: 1.41 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_gal_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_gal_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_gal.fmu > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_gal_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_UnitConversions_Validation_To_gal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches