Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008429/0.0008429, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008482/0.0008482, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8672/0.8672, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.714/1.714, allocations: 377.9 MB / 0.6221 GB, free: 8.652 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_gal,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_To_gal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_gal,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_To_gal",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 0.981 GB, free: 2.582 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.832e-05/1.982e-05, allocations: 2.281 kB / 0.981 GB, free: 2.578 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_gal): time 0.001437/0.001457, allocations: 0.8022 MB / 0.9818 GB, free: 1.777 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 9.741e-05/0.001554, allocations: 47.78 kB / 0.9818 GB, free: 1.73 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.327e-05/0.001597, allocations: 0 / 0.9818 GB, free: 1.73 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.398e-05/0.001631, allocations: 7.875 kB / 0.9818 GB, free: 1.723 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 7.204e-05/0.001703, allocations: 15.86 kB / 0.9818 GB, free: 1.707 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 3.501e-05/0.001738, allocations: 15.98 kB / 0.9818 GB, free: 1.691 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 8.721e-05/0.001826, allocations: 59.84 kB / 0.9819 GB, free: 1.633 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.001939, allocations: 27.97 kB / 0.9819 GB, free: 1.605 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 7.468e-05/0.002013, allocations: 35.91 kB / 0.982 GB, free: 1.57 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 3.882e-05/0.002052, allocations: 23.89 kB / 0.982 GB, free: 1.547 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.208e-05/0.002074, allocations: 12 kB / 0.982 GB, free: 1.535 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 5.841e-06/0.00208, allocations: 7.938 kB / 0.982 GB, free: 1.527 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.644e-05/0.002097, allocations: 12 kB / 0.982 GB, free: 1.516 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 2.486e-05/0.002121, allocations: 19.92 kB / 0.982 GB, free: 1.496 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.002227, allocations: 75.58 kB / 0.9821 GB, free: 1.422 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.844e-06/0.002229, allocations: 0 / 0.9821 GB, free: 1.422 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.282e-06/0.00223, allocations: 0 / 0.9821 GB, free: 1.422 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 3.897e-06/0.002234, allocations: 0 / 0.9821 GB, free: 1.422 MB / 0.9323 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.0003697/0.002604, allocations: 302 kB / 0.9824 GB, free: 1.094 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.002644, allocations: 12.03 kB / 0.9824 GB, free: 1.082 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.726e-05/0.002682, allocations: 42.75 kB / 0.9824 GB, free: 1.031 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.458e-05/0.002706, allocations: 12.84 kB / 0.9825 GB, free: 1.02 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001655/0.002872, allocations: 141.6 kB / 0.9826 GB, free: 0.8555 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.079e-05/0.002883, allocations: 8.375 kB / 0.9826 GB, free: 0.8477 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.153e-05/0.002894, allocations: 8.375 kB / 0.9826 GB, free: 0.8398 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001276/0.003022, allocations: 91.95 kB / 0.9827 GB, free: 0.7383 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.003029, allocations: 192 / 0.9827 GB, free: 0.7383 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.003038, allocations: 4.312 kB / 0.9827 GB, free: 0.7344 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.003045, allocations: 8.125 kB / 0.9827 GB, free: 0.7266 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.867e-05/0.003104, allocations: 35.92 kB / 0.9827 GB, free: 0.6914 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004278/0.003532, allocations: 391.9 kB / 0.9831 GB, free: 268 kB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 5.406e-05/0.003586, allocations: 41.19 kB / 0.9832 GB, free: 208 kB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.056e-05/0.003616, allocations: 17.84 kB / 0.9832 GB, free: 184 kB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 7.685e-06/0.003624, allocations: 7.984 kB / 0.9832 GB, free: 176 kB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.003644, allocations: 30.56 kB / 0.9832 GB, free: 136 kB / 0.9323 GB Notification: Performance of pre-optimization done (n=2): time 1.313e-06/0.003645, allocations: 0 / 0.9832 GB, free: 136 kB / 0.9323 GB Notification: Performance of matching and sorting (n=2): time 0.0001516/0.003797, allocations: 61.52 kB / 0.9833 GB, free: 68 kB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.932e-05/0.003846, allocations: 81.3 kB / 0.9833 GB, free: 15.97 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.003956, allocations: 164.1 kB / 0.9835 GB, free: 15.8 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.167e-06/0.003965, allocations: 25.7 kB / 0.9835 GB, free: 15.77 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.297e-05/0.004018, allocations: 104 kB / 0.9836 GB, free: 15.66 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 8.085e-06/0.004026, allocations: 11.88 kB / 0.9836 GB, free: 15.65 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.611e-05/0.004052, allocations: 17.72 kB / 0.9837 GB, free: 15.63 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.783e-05/0.00413, allocations: 322.8 kB / 0.984 GB, free: 15.3 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.298e-05/0.004143, allocations: 4 kB / 0.984 GB, free: 15.3 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.877e-05/0.004162, allocations: 21.66 kB / 0.984 GB, free: 15.27 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.804e-05/0.0042, allocations: 21.72 kB / 0.984 GB, free: 15.25 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.004202, allocations: 8 kB / 0.984 GB, free: 15.24 MB / 0.948 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.055e-05/0.004263, allocations: 61.58 kB / 0.9841 GB, free: 15.17 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.004275, allocations: 4 kB / 0.9841 GB, free: 15.17 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.00428, allocations: 0 / 0.9841 GB, free: 15.17 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.004292, allocations: 4 kB / 0.9841 GB, free: 15.16 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.602e-05/0.004348, allocations: 7.938 kB / 0.9841 GB, free: 15.16 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.9e-06/0.004353, allocations: 0 / 0.9841 GB, free: 15.16 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.693e-05/0.00437, allocations: 4 kB / 0.9841 GB, free: 15.15 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-06/0.004374, allocations: 0 / 0.9841 GB, free: 15.15 MB / 0.948 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 5.488e-05/0.004428, allocations: 121.9 kB / 0.9842 GB, free: 15.02 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.294e-05/0.004451, allocations: 11.91 kB / 0.9842 GB, free: 15.01 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.846e-05/0.00447, allocations: 11.81 kB / 0.9842 GB, free: 15 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.004471, allocations: 0 / 0.9842 GB, free: 15 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.004476, allocations: 3.938 kB / 0.9842 GB, free: 15 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.004479, allocations: 0 / 0.9842 GB, free: 15 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002381/0.004718, allocations: 433.9 kB / 0.9846 GB, free: 14.52 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.004719, allocations: 0 / 0.9846 GB, free: 14.52 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.167e-05/0.004731, allocations: 11.92 kB / 0.9847 GB, free: 14.51 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.004732, allocations: 0 / 0.9847 GB, free: 14.51 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5e-06/0.004737, allocations: 8 kB / 0.9847 GB, free: 14.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.004738, allocations: 3.938 kB / 0.9847 GB, free: 14.5 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.004739, allocations: 0 / 0.9847 GB, free: 14.5 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.35e-05/0.004793, allocations: 73.95 kB / 0.9847 GB, free: 14.4 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.082e-05/0.004814, allocations: 19.88 kB / 0.9848 GB, free: 14.38 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.042e-05/0.004824, allocations: 7.938 kB / 0.9848 GB, free: 14.38 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.778e-06/0.004834, allocations: 0 / 0.9848 GB, free: 14.38 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.229e-05/0.004846, allocations: 4 kB / 0.9848 GB, free: 14.37 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-06/0.004847, allocations: 0 / 0.9848 GB, free: 14.37 MB / 0.948 GB Notification: Performance of sorting global known variables: time 5.793e-05/0.004905, allocations: 121.9 kB / 0.9849 GB, free: 14.25 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.004905, allocations: 32 / 0.9849 GB, free: 14.25 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001259/0.005031, allocations: 19.94 kB / 0.9849 GB, free: 14.23 MB / 0.948 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.0002346/0.005266, allocations: 0.6131 MB / 0.9855 GB, free: 13.59 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 7.24e-05/0.005338, allocations: 23.92 kB / 0.9855 GB, free: 13.56 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.00534, allocations: 0 / 0.9855 GB, free: 13.56 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 5.941e-06/0.005346, allocations: 4 kB / 0.9855 GB, free: 13.56 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000119/0.005465, allocations: 11.84 kB / 0.9855 GB, free: 13.55 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008465/0.006312, allocations: 1.344 MB / 0.9869 GB, free: 12.1 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.717e-05/0.006359, allocations: 75.33 kB / 0.9869 GB, free: 12 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.74e-05/0.006386, allocations: 8.484 kB / 0.9869 GB, free: 12 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.36e-05/0.00643, allocations: 24.5 kB / 0.987 GB, free: 11.97 MB / 0.948 GB Notification: Performance of SimCode: time 1.082e-06/0.006431, allocations: 0 / 0.987 GB, free: 11.97 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01496/0.02139, allocations: 2.232 MB / 0.9891 GB, free: 9.883 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.545/6.567, allocations: 2.344 kB / 0.9891 GB, free: 9.883 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_gal_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_To_gal.fmu > Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_gal_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_UnitConversions_Validation_To_gal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.708880628459156]