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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: translateModel(Buildings.Controls.OBC.UnitConversions.Validation.To_gal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_gal") translateModel(Buildings.Controls.OBC.UnitConversions.Validation.To_gal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_gal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 88.2 kB / 16.03 MB, free: 56 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.001356/0.001356, allocations: 187.8 kB / 16.93 MB, free: 6.891 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.44/1.44, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.712/2.712, allocations: 462.6 MB / 0.7371 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004144/0.000415, allocations: 16.8 kB / 0.9034 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3143, allocations: 159.6 MB / 1.059 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_gal): time 0.0009975/0.3153, allocations: 0.5415 MB / 1.06 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001225/0.3155, allocations: 35.78 kB / 1.06 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.862e-05/0.3156, allocations: 0 / 1.06 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.514e-05/0.3156, allocations: 3.938 kB / 1.06 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.452e-05/0.3157, allocations: 19.92 kB / 1.06 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 4.362e-05/0.3157, allocations: 12 kB / 1.06 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.2e-05/0.3158, allocations: 59.75 kB / 1.06 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.316, allocations: 47.95 kB / 1.06 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.8e-05/0.316, allocations: 23.8 kB / 1.06 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.162e-05/0.3161, allocations: 19.86 kB / 1.06 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.422e-05/0.3161, allocations: 0 / 1.06 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.394e-06/0.3161, allocations: 0 / 1.06 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.782e-05/0.3162, allocations: 11.94 kB / 1.06 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.278e-05/0.3162, allocations: 49.45 kB / 1.06 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.817e-05/0.3163, allocations: 52.16 kB / 1.06 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3163, allocations: 0 / 1.06 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3163, allocations: 0 / 1.06 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.129e-06/0.3163, allocations: 0 / 1.06 GB, free: 4.121 MB / 0.8106 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.0004057/0.3167, allocations: 375.3 kB / 1.061 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.3168, allocations: 8.031 kB / 1.061 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.737e-05/0.3168, allocations: 8.844 kB / 1.061 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001912/0.317, allocations: 192.2 kB / 1.061 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.317, allocations: 4.375 kB / 1.061 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.388e-05/0.3171, allocations: 8.375 kB / 1.061 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001533/0.3172, allocations: 97.5 kB / 1.061 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.3172, allocations: 192 / 1.061 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.3172, allocations: 3.938 kB / 1.061 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.3173, allocations: 4 kB / 1.061 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.958e-05/0.3173, allocations: 39.92 kB / 1.061 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005548/0.3179, allocations: 432.5 kB / 1.061 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.18e-05/0.318, allocations: 41.28 kB / 1.061 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.227e-05/0.318, allocations: 25.83 kB / 1.061 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.534e-06/0.318, allocations: 0 / 1.061 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.569e-05/0.3181, allocations: 34.56 kB / 1.061 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 2.484e-06/0.3181, allocations: 3.938 kB / 1.061 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001892/0.3183, allocations: 57.48 kB / 1.061 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.385e-05/0.3183, allocations: 81.05 kB / 1.062 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.3185, allocations: 163.7 kB / 1.062 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.3185, allocations: 25.7 kB / 1.062 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.487e-05/0.3186, allocations: 107.9 kB / 1.062 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 8.987e-06/0.3186, allocations: 7.984 kB / 1.062 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.398e-05/0.3186, allocations: 13.97 kB / 1.062 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.3188, allocations: 326.8 kB / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.824e-05/0.3188, allocations: 4 kB / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.543e-05/0.3188, allocations: 21.7 kB / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.136e-05/0.3189, allocations: 21.72 kB / 1.062 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3189, allocations: 0 / 1.062 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.286e-05/0.319, allocations: 65.55 kB / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.319, allocations: 7.984 kB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.319, allocations: 3.938 kB / 1.062 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.319, allocations: 0 / 1.062 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.82e-05/0.3191, allocations: 8 kB / 1.062 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.3191, allocations: 0 / 1.062 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.499e-05/0.3191, allocations: 11.84 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-06/0.3192, allocations: 0 / 1.062 GB, free: 1.699 MB / 0.8106 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.702e-05/0.3192, allocations: 121.8 kB / 1.062 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.437e-05/0.3193, allocations: 7.906 kB / 1.062 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.309e-05/0.3193, allocations: 19.8 kB / 1.062 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3193, allocations: 0 / 1.062 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3193, allocations: 0 / 1.062 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.3194, allocations: 0 / 1.062 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003932/0.3198, allocations: 466.9 kB / 1.063 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.3198, allocations: 0 / 1.063 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.367e-05/0.3198, allocations: 12.05 kB / 1.063 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3198, allocations: 0 / 1.063 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-06/0.3198, allocations: 0 / 1.063 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.122e-06/0.3198, allocations: 8 kB / 1.063 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3198, allocations: 0 / 1.063 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.931e-05/0.3199, allocations: 81.83 kB / 1.063 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.698e-05/0.32, allocations: 93.03 kB / 1.063 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.788e-05/0.32, allocations: 3.938 kB / 1.063 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.028e-05/0.3201, allocations: 0 / 1.063 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.211e-05/0.3201, allocations: 0 / 1.063 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-06/0.3201, allocations: 4 kB / 1.063 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.791e-05/0.3202, allocations: 126.1 kB / 1.063 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3202, allocations: 0 / 1.063 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000192/0.3204, allocations: 11.84 kB / 1.063 GB, free: 0.6523 MB / 0.8106 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.0001283/0.3205, allocations: 103.2 kB / 1.063 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001006/0.3206, allocations: 15.94 kB / 1.063 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3206, allocations: 0 / 1.063 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.448e-05/0.3207, allocations: 7.938 kB / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001908/0.3209, allocations: 15.92 kB / 1.063 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003922/0.3213, allocations: 202.6 kB / 1.064 GB, free: 268 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.3215, allocations: 0.6926 MB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.173e-05/0.3216, allocations: 11.44 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of SimCode: time 5.11e-07/0.3216, allocations: 0 / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of Templates: time 0.002503/0.3241, allocations: 0.8481 MB / 1.065 GB, free: 14.68 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_gal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_gal_res.mat","/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