Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_gal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_gal,fileNamePrefix="Buildings_latest_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.008128/0.008129, allocations: 102.7 kB / 15.74 MB, free: 5.551 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.002028/0.002028, allocations: 194.6 kB / 16.67 MB, free: 5.48 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.355/1.355, 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 11.1.0-master/package.mo): time 2.627/2.627, allocations: 469.4 MB / 0.7421 GB, free: 3.594 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 63.83 kB / 1.064 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6749/0.6762, allocations: 159.1 MB / 1.22 GB, free: 2.289 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_gal): time 0.001918/0.6782, allocations: 0.8333 MB / 1.221 GB, free: 1.457 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0001169/0.6783, allocations: 35.84 kB / 1.221 GB, free: 1.422 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.228e-05/0.6784, allocations: 3.938 kB / 1.221 GB, free: 1.418 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.461e-05/0.6784, allocations: 3.938 kB / 1.221 GB, free: 1.414 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.623e-05/0.6785, allocations: 15.88 kB / 1.221 GB, free: 1.398 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 5.008e-05/0.6786, allocations: 15.97 kB / 1.221 GB, free: 1.383 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.5e-05/0.6787, allocations: 59.84 kB / 1.221 GB, free: 1.324 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.6788, allocations: 55.8 kB / 1.221 GB, free: 1.27 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.734e-05/0.6789, allocations: 27.86 kB / 1.221 GB, free: 1.242 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.445e-05/0.6789, allocations: 27.86 kB / 1.221 GB, free: 1.215 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.653e-05/0.6789, allocations: 11.98 kB / 1.221 GB, free: 1.203 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.102e-05/0.679, allocations: 8 kB / 1.221 GB, free: 1.195 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.798e-05/0.679, allocations: 15.86 kB / 1.221 GB, free: 1.18 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.109e-05/0.679, allocations: 35.75 kB / 1.221 GB, free: 1.145 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001129/0.6791, allocations: 75.3 kB / 1.221 GB, free: 1.074 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.6792, allocations: 0 / 1.221 GB, free: 1.074 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.815e-06/0.6792, allocations: 4 kB / 1.221 GB, free: 1.07 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.025e-06/0.6792, allocations: 0 / 1.221 GB, free: 1.07 MB / 0.9356 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.0003833/0.6796, allocations: 371.2 kB / 1.221 GB, free: 0.6562 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.6796, allocations: 16.62 kB / 1.221 GB, free: 0.6406 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.412e-05/0.6797, allocations: 38.73 kB / 1.221 GB, free: 0.5938 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.957e-05/0.6797, allocations: 16.84 kB / 1.221 GB, free: 0.5781 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001816/0.6799, allocations: 196.1 kB / 1.222 GB, free: 356 kB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.6799, allocations: 8.375 kB / 1.222 GB, free: 348 kB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.357e-05/0.6799, allocations: 4.375 kB / 1.222 GB, free: 344 kB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001478/0.6801, allocations: 99.84 kB / 1.222 GB, free: 232 kB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.6801, allocations: 3.938 kB / 1.222 GB, free: 228 kB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.6801, allocations: 8 kB / 1.222 GB, free: 220 kB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.6801, allocations: 0 / 1.222 GB, free: 220 kB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.377e-05/0.6802, allocations: 35.92 kB / 1.222 GB, free: 184 kB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005129/0.6807, allocations: 432.8 kB / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 5.432e-05/0.6808, allocations: 45.19 kB / 1.222 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.767e-05/0.6808, allocations: 25.83 kB / 1.222 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 6.192e-06/0.6808, allocations: 0 / 1.222 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.035e-05/0.6809, allocations: 30.56 kB / 1.222 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.6809, allocations: 0 / 1.222 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0001676/0.681, allocations: 57.75 kB / 1.222 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/0.6811, allocations: 81.14 kB / 1.222 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.6812, allocations: 160.9 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 9.989e-06/0.6812, allocations: 25.7 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.502e-05/0.6813, allocations: 100.1 kB / 1.223 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 8.676e-06/0.6813, allocations: 7.953 kB / 1.223 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.268e-05/0.6814, allocations: 17.67 kB / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.846e-05/0.6815, allocations: 322.8 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.124e-05/0.6815, allocations: 19.88 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.284e-05/0.6815, allocations: 17.7 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.919e-05/0.6816, allocations: 25.72 kB / 1.223 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.6816, allocations: 0 / 1.223 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.527e-05/0.6817, allocations: 53.59 kB / 1.223 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.6817, allocations: 15.92 kB / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.6817, allocations: 64 / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.6817, allocations: 4 kB / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.044e-05/0.6818, allocations: 11.94 kB / 1.223 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.6818, allocations: 0 / 1.223 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.413e-05/0.6818, allocations: 7.938 kB / 1.223 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.328e-06/0.6818, allocations: 4 kB / 1.223 GB, free: 14.57 MB / 0.9512 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.852e-05/0.6819, allocations: 114.4 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.689e-05/0.682, allocations: 11.89 kB / 1.223 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.22e-05/0.682, allocations: 7.859 kB / 1.223 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.682, allocations: 8 kB / 1.223 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.682, allocations: 4 kB / 1.223 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.682, allocations: 0 / 1.223 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003601/0.6824, allocations: 478.6 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.6824, allocations: 0 / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.257e-05/0.6824, allocations: 7.938 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.6824, allocations: 0 / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-06/0.6824, allocations: 0 / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.6824, allocations: 4.062 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.6825, allocations: 7.984 kB / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.038e-05/0.6825, allocations: 77.88 kB / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.471e-05/0.6826, allocations: 89.05 kB / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.56e-05/0.6826, allocations: 4 kB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.193e-05/0.6826, allocations: 0 / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.011e-05/0.6827, allocations: 4.125 kB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.6827, allocations: 0 / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.303e-05/0.6827, allocations: 121.3 kB / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.483e-06/0.6828, allocations: 0 / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001957/0.683, allocations: 11.94 kB / 1.224 GB, free: 13.53 MB / 0.9512 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.0003249/0.6833, allocations: 0.621 MB / 1.225 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 7.995e-05/0.6834, allocations: 15.94 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.6834, allocations: 7.938 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.178e-05/0.6834, allocations: 8 kB / 1.225 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001497/0.6836, allocations: 2.031 kB / 1.225 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.6846, allocations: 1.333 MB / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.6849, allocations: 0.6963 MB / 1.227 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.917e-05/0.6849, allocations: 4.438 kB / 1.227 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.465e-05/0.685, allocations: 27.42 kB / 1.227 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of SimCode: time 2.41e-07/0.685, allocations: 0 / 1.227 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01638/0.7014, allocations: 1.579 MB / 1.228 GB, free: 9.184 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.099/7.8, allocations: 11.8 kB / 1.228 GB, free: 9.176 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_gal.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_gal_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_To_gal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches