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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.006553/0.006553, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.00124/0.00124, allocations: 193.5 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.486/2.486, allocations: 437 MB / 0.7105 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 63.84 kB / 1.018 GB, free: 9.891 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7278/0.7292, allocations: 151.6 MB / 1.166 GB, free: 3.773 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_gal): time 0.001909/0.7312, allocations: 0.8331 MB / 1.167 GB, free: 2.941 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0001043/0.7313, allocations: 39.78 kB / 1.167 GB, free: 2.902 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.17e-05/0.7313, allocations: 4 kB / 1.167 GB, free: 2.898 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.275e-05/0.7314, allocations: 7.875 kB / 1.167 GB, free: 2.891 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.211e-05/0.7315, allocations: 3.938 kB / 1.167 GB, free: 2.887 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 4.612e-05/0.7315, allocations: 23.97 kB / 1.167 GB, free: 2.863 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.787e-05/0.7316, allocations: 63.78 kB / 1.167 GB, free: 2.801 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.7318, allocations: 47.97 kB / 1.167 GB, free: 2.754 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.286e-05/0.7318, allocations: 23.86 kB / 1.167 GB, free: 2.73 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.166e-05/0.7319, allocations: 27.86 kB / 1.167 GB, free: 2.703 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.59e-05/0.7319, allocations: 4 kB / 1.167 GB, free: 2.699 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 9.829e-06/0.7319, allocations: 8 kB / 1.167 GB, free: 2.691 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.992e-05/0.7319, allocations: 15.92 kB / 1.167 GB, free: 2.676 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.337e-05/0.732, allocations: 31.75 kB / 1.167 GB, free: 2.645 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001037/0.7321, allocations: 83.34 kB / 1.167 GB, free: 2.566 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.7321, allocations: 0 / 1.167 GB, free: 2.566 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.523e-06/0.7321, allocations: 0 / 1.167 GB, free: 2.566 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.7321, allocations: 0 / 1.167 GB, free: 2.566 MB / 0.8887 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.0003629/0.7325, allocations: 383 kB / 1.168 GB, free: 2.141 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.7325, allocations: 8.922 kB / 1.168 GB, free: 2.133 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.347e-05/0.7325, allocations: 42.73 kB / 1.168 GB, free: 2.082 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.666e-05/0.7326, allocations: 12.84 kB / 1.168 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001936/0.7328, allocations: 204.1 kB / 1.168 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.7328, allocations: 4.375 kB / 1.168 GB, free: 1.828 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.7328, allocations: 8.375 kB / 1.168 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001433/0.733, allocations: 94.38 kB / 1.168 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.733, allocations: 3.938 kB / 1.168 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.733, allocations: 0 / 1.168 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.733, allocations: 4 kB / 1.168 GB, free: 1.711 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.285e-05/0.7331, allocations: 43.91 kB / 1.168 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004853/0.7336, allocations: 440.6 kB / 1.169 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 5.313e-05/0.7336, allocations: 45.34 kB / 1.169 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.382e-05/0.7337, allocations: 21.77 kB / 1.169 GB, free: 1.094 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 9.468e-06/0.7337, allocations: 4 kB / 1.169 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.7337, allocations: 34.56 kB / 1.169 GB, free: 1.047 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 2.685e-06/0.7337, allocations: 0 / 1.169 GB, free: 1.047 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0001535/0.7339, allocations: 53.53 kB / 1.169 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.214e-05/0.7339, allocations: 84.98 kB / 1.169 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.7341, allocations: 160.9 kB / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.071e-05/0.7341, allocations: 25.95 kB / 1.169 GB, free: 0.6914 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 5.236e-05/0.7342, allocations: 104.1 kB / 1.169 GB, free: 0.5859 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.7342, allocations: 11.95 kB / 1.169 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.029e-05/0.7342, allocations: 13.72 kB / 1.169 GB, free: 0.5547 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.7344, allocations: 318.8 kB / 1.169 GB, free: 240 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.774e-05/0.7344, allocations: 8 kB / 1.169 GB, free: 232 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.035e-05/0.7344, allocations: 17.7 kB / 1.169 GB, free: 208 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.923e-05/0.7345, allocations: 29.72 kB / 1.169 GB, free: 172 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.7345, allocations: 0 / 1.169 GB, free: 172 kB / 0.8887 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.096e-05/0.7345, allocations: 61.55 kB / 1.169 GB, free: 104 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.7346, allocations: 14.42 kB / 1.169 GB, free: 92 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.7346, allocations: 3.938 kB / 1.17 GB, free: 88 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.7346, allocations: 4 kB / 1.17 GB, free: 84 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.533e-05/0.7347, allocations: 4 kB / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.7347, allocations: 0 / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.536e-05/0.7347, allocations: 16 kB / 1.17 GB, free: 64 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-06/0.7347, allocations: 0 / 1.17 GB, free: 64 kB / 0.8887 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 8.107e-05/0.7348, allocations: 113.8 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.584e-05/0.7349, allocations: 15.89 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.613e-05/0.7349, allocations: 11.86 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-06/0.7349, allocations: 0 / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.7349, allocations: 0 / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.7349, allocations: 0 / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003722/0.7353, allocations: 478.7 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.7353, allocations: 0 / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.138e-05/0.7353, allocations: 4 kB / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.7353, allocations: 0 / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.702e-06/0.7353, allocations: 4 kB / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.7353, allocations: 0 / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.7353, allocations: 3.984 kB / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.455e-05/0.7354, allocations: 81.94 kB / 1.17 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.621e-05/0.7355, allocations: 93.05 kB / 1.17 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.198e-05/0.7355, allocations: 3.938 kB / 1.17 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.093e-05/0.7355, allocations: 0 / 1.17 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.449e-05/0.7356, allocations: 4 kB / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-06/0.7356, allocations: 4 kB / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.262e-05/0.7356, allocations: 121.9 kB / 1.17 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of sort global known variables: time 9e-08/0.7357, allocations: 32 / 1.17 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0001891/0.7358, allocations: 12 kB / 1.17 GB, free: 15.01 MB / 0.9044 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.0003639/0.7362, allocations: 0.6132 MB / 1.171 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 8.109e-05/0.7363, allocations: 23.97 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.7363, allocations: 0 / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.216e-05/0.7363, allocations: 8 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001496/0.7365, allocations: 4 kB / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001156/0.7377, allocations: 1.339 MB / 1.172 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002692/0.7379, allocations: 0.6963 MB / 1.173 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.578e-05/0.738, allocations: 8.375 kB / 1.173 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.47e-05/0.738, allocations: 27.42 kB / 1.173 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of SimCode: time 2.41e-07/0.738, allocations: 0 / 1.173 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01588/0.7539, allocations: 1.568 MB / 1.175 GB, free: 10.66 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.192/7.946, allocations: 13.5 kB / 1.175 GB, free: 10.65 MB / 0.9044 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_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_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.csv","/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