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.00171/0.00171, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001942/0.001942, allocations: 198 kB / 16.54 MB, free: 6.672 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.381/1.381, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.344/2.344, allocations: 390.3 MB / 0.6647 GB, free: 260 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 63.91 kB / 0.8127 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5364/0.5378, allocations: 140.4 MB / 0.9497 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_gal): time 0.00183/0.5396, allocations: 0.8187 MB / 0.9505 GB, free: 8.574 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 9.375e-05/0.5397, allocations: 41.34 kB / 0.9506 GB, free: 8.539 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.633e-05/0.5398, allocations: 1.438 kB / 0.9506 GB, free: 8.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.272e-05/0.5398, allocations: 11.86 kB / 0.9506 GB, free: 8.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.322e-05/0.5399, allocations: 9.344 kB / 0.9506 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 4.006e-05/0.54, allocations: 14.67 kB / 0.9506 GB, free: 8.508 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.432e-05/0.5401, allocations: 69.31 kB / 0.9507 GB, free: 8.465 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001259/0.5402, allocations: 39.34 kB / 0.9507 GB, free: 8.441 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.989e-05/0.5402, allocations: 27.67 kB / 0.9507 GB, free: 8.422 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.144e-05/0.5403, allocations: 33.02 kB / 0.9508 GB, free: 8.395 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.682e-05/0.5403, allocations: 6.531 kB / 0.9508 GB, free: 8.395 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.007e-05/0.5403, allocations: 6.344 kB / 0.9508 GB, free: 8.395 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.628e-05/0.5403, allocations: 17.22 kB / 0.9508 GB, free: 8.379 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.963e-05/0.5404, allocations: 31.58 kB / 0.9508 GB, free: 8.355 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.886e-05/0.5405, allocations: 70.5 kB / 0.9509 GB, free: 8.301 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.5405, allocations: 0 / 0.9509 GB, free: 8.301 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.193e-06/0.5405, allocations: 0 / 0.9509 GB, free: 8.301 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.5405, allocations: 1.25 kB / 0.9509 GB, free: 8.301 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.0003095/0.5408, allocations: 382.6 kB / 0.9513 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.5408, allocations: 12.97 kB / 0.9513 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.434e-05/0.5409, allocations: 36.84 kB / 0.9513 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.412e-05/0.5409, allocations: 13.62 kB / 0.9513 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.5411, allocations: 195.2 kB / 0.9515 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.304e-06/0.5411, allocations: 7.031 kB / 0.9515 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.451e-05/0.5411, allocations: 10.41 kB / 0.9515 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001235/0.5412, allocations: 89.7 kB / 0.9516 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.5412, allocations: 5.656 kB / 0.9516 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.5412, allocations: 4 kB / 0.9516 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.5413, allocations: 1.75 kB / 0.9516 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.76e-05/0.5413, allocations: 40.45 kB / 0.9517 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003807/0.5417, allocations: 432 kB / 0.9521 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.558e-05/0.5418, allocations: 37.98 kB / 0.9521 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.963e-05/0.5418, allocations: 27.59 kB / 0.9521 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.582e-06/0.5418, allocations: 0 / 0.9521 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.236e-05/0.5418, allocations: 31.81 kB / 0.9522 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.21e-07/0.5418, allocations: 3.938 kB / 0.9522 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001439/0.542, allocations: 59.41 kB / 0.9522 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.122e-05/0.542, allocations: 91.3 kB / 0.9523 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.5421, allocations: 158.7 kB / 0.9525 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.671e-06/0.5421, allocations: 25.7 kB / 0.9525 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.671e-05/0.5422, allocations: 108.8 kB / 0.9526 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.803e-06/0.5422, allocations: 9.109 kB / 0.9526 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.576e-05/0.5422, allocations: 16.5 kB / 0.9526 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.594e-05/0.5423, allocations: 317.6 kB / 0.9529 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.622e-05/0.5423, allocations: 10.73 kB / 0.9529 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.771e-05/0.5423, allocations: 26.75 kB / 0.953 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.302e-05/0.5423, allocations: 26.25 kB / 0.953 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.5423, allocations: 1.438 kB / 0.953 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.941e-05/0.5424, allocations: 54.72 kB / 0.953 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.5424, allocations: 9.719 kB / 0.953 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.5424, allocations: 3.938 kB / 0.953 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.5425, allocations: 5.5 kB / 0.953 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.623e-05/0.5425, allocations: 9.125 kB / 0.9531 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.5425, allocations: 1.938 kB / 0.9531 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.833e-05/0.5426, allocations: 1.656 kB / 0.9531 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-06/0.5426, allocations: 1.25 kB / 0.9531 GB, free: 6.078 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.48e-05/0.5426, allocations: 117.1 kB / 0.9532 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.343e-05/0.5427, allocations: 12.28 kB / 0.9532 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.841e-05/0.5427, allocations: 6.656 kB / 0.9532 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.5427, allocations: 0 / 0.9532 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.5427, allocations: 5 kB / 0.9532 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.5427, allocations: 0.8125 kB / 0.9532 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002545/0.543, allocations: 478.1 kB / 0.9537 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.543, allocations: 1.156 kB / 0.9537 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.835e-05/0.543, allocations: 2.156 kB / 0.9537 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.543, allocations: 4.953 kB / 0.9537 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.07e-06/0.543, allocations: 0.8438 kB / 0.9537 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.543, allocations: 9.016 kB / 0.9537 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.543, allocations: 1.031 kB / 0.9537 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.915e-05/0.5431, allocations: 82.53 kB / 0.9538 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.9e-05/0.5431, allocations: 99.73 kB / 0.9538 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.317e-05/0.5431, allocations: 1.406 kB / 0.9538 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.11e-05/0.5432, allocations: 0 / 0.9538 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.337e-05/0.5432, allocations: 5.281 kB / 0.9539 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-06/0.5432, allocations: 1.469 kB / 0.9539 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.203e-05/0.5433, allocations: 120.3 kB / 0.954 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5433, allocations: 0 / 0.954 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001915/0.5435, allocations: 11.5 kB / 0.954 GB, free: 5.117 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.0002096/0.5437, allocations: 0.6192 MB / 0.9546 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.559e-05/0.5438, allocations: 18.86 kB / 0.9546 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.5438, allocations: 0 / 0.9546 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.191e-05/0.5438, allocations: 12.47 kB / 0.9546 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001498/0.5439, allocations: 7.406 kB / 0.9546 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008113/0.5448, allocations: 1.321 MB / 0.9559 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.124e-05/0.5449, allocations: 0.6986 MB / 0.9566 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.017e-05/0.5449, allocations: 8.453 kB / 0.9566 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.699e-05/0.5449, allocations: 26.7 kB / 0.9566 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.5449, allocations: 0 / 0.9566 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02461/0.5696, allocations: 1.541 MB / 0.9581 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.102/7.672, allocations: 9.281 kB / 0.9581 GB, free: 1.652 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_gal_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 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.csv","/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