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.001143/0.001143, allocations: 107.6 kB / 16.36 MB, free: 5.824 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.001105/0.001105, allocations: 194.2 kB / 17.29 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.394/1.394, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.476/2.476, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 63.88 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3237, allocations: 153 MB / 1.027 GB, free: 2.047 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_gal): time 0.002276/0.326, allocations: 0.8448 MB / 1.028 GB, free: 1.207 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0001152/0.3262, allocations: 43.78 kB / 1.028 GB, free: 1.164 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.379e-05/0.3262, allocations: 0 / 1.028 GB, free: 1.164 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.918e-05/0.3263, allocations: 11.88 kB / 1.028 GB, free: 1.152 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.962e-05/0.3264, allocations: 11.88 kB / 1.028 GB, free: 1.141 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 5.042e-05/0.3264, allocations: 19.97 kB / 1.028 GB, free: 1.121 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001004/0.3265, allocations: 59.84 kB / 1.028 GB, free: 1.062 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.3267, allocations: 39.97 kB / 1.028 GB, free: 1.023 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.192e-05/0.3268, allocations: 31.8 kB / 1.028 GB, free: 0.9922 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.617e-05/0.3268, allocations: 31.8 kB / 1.028 GB, free: 0.9609 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.127e-05/0.3269, allocations: 7.984 kB / 1.028 GB, free: 0.9531 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.174e-05/0.3269, allocations: 8 kB / 1.028 GB, free: 0.9453 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.243e-05/0.3269, allocations: 15.92 kB / 1.028 GB, free: 0.9297 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.191e-05/0.3269, allocations: 35.75 kB / 1.028 GB, free: 0.8945 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001078/0.3271, allocations: 75.64 kB / 1.028 GB, free: 0.8203 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.3271, allocations: 4 kB / 1.028 GB, free: 0.8164 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3271, allocations: 0 / 1.028 GB, free: 0.8164 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.3271, allocations: 0 / 1.028 GB, free: 0.8164 MB / 0.795 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.0004448/0.3275, allocations: 367.2 kB / 1.028 GB, free: 416 kB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.3276, allocations: 12.03 kB / 1.028 GB, free: 404 kB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.049e-05/0.3276, allocations: 8.844 kB / 1.028 GB, free: 396 kB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001968/0.3278, allocations: 196.2 kB / 1.028 GB, free: 160 kB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.3278, allocations: 12.28 kB / 1.028 GB, free: 148 kB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/0.3279, allocations: 8.375 kB / 1.028 GB, free: 140 kB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001483/0.328, allocations: 91.89 kB / 1.029 GB, free: 36 kB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.328, allocations: 192 / 1.029 GB, free: 36 kB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.328, allocations: 7.938 kB / 1.029 GB, free: 28 kB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.3281, allocations: 4 kB / 1.029 GB, free: 24 kB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.615e-05/0.3281, allocations: 35.97 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005257/0.3287, allocations: 440.5 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.929e-05/0.3288, allocations: 37.25 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.784e-05/0.3288, allocations: 17.78 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.987e-06/0.3288, allocations: 0 / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.075e-05/0.3289, allocations: 38.56 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.41e-07/0.3289, allocations: 0 / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001843/0.3291, allocations: 57.47 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.3291, allocations: 77.11 kB / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001519/0.3293, allocations: 164.7 kB / 1.029 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.25e-05/0.3293, allocations: 25.7 kB / 1.029 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.039e-05/0.3294, allocations: 112.2 kB / 1.03 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.565e-05/0.3294, allocations: 11.91 kB / 1.03 GB, free: 14.9 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.052e-05/0.3294, allocations: 13.72 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.3296, allocations: 318.8 kB / 1.03 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.877e-05/0.3296, allocations: 8 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.858e-05/0.3296, allocations: 13.72 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.38e-05/0.3297, allocations: 33.66 kB / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.3297, allocations: 7.984 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.788e-05/0.3298, allocations: 53.55 kB / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.3298, allocations: 4 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.3298, allocations: 11.88 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.3298, allocations: 4 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.816e-05/0.3299, allocations: 4 kB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/0.3299, allocations: 3.984 kB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.071e-05/0.3299, allocations: 11.84 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.3299, allocations: 8.062 kB / 1.03 GB, free: 14.38 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 7.806e-05/0.33, allocations: 113.8 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.206e-05/0.3301, allocations: 11.91 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.225e-05/0.3301, allocations: 11.81 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.3301, allocations: 0 / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3301, allocations: 0 / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.3301, allocations: 3.984 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000415/0.3305, allocations: 478.8 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3305, allocations: 0 / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.86e-05/0.3306, allocations: 4 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.3306, allocations: 0 / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.3306, allocations: 4.094 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3306, allocations: 0 / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3306, allocations: 3.938 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.279e-05/0.3307, allocations: 85.88 kB / 1.031 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.034e-05/0.3307, allocations: 89.02 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.249e-05/0.3308, allocations: 0 / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.946e-05/0.3308, allocations: 0 / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.095e-05/0.3308, allocations: 7.984 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-06/0.3309, allocations: 0 / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.979e-05/0.3309, allocations: 118.5 kB / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3309, allocations: 3.938 kB / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000186/0.3311, allocations: 12.03 kB / 1.031 GB, free: 13.34 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.000134/0.3313, allocations: 103.2 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 8.838e-05/0.3314, allocations: 19.94 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3314, allocations: 0 / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.848e-06/0.3314, allocations: 4 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001517/0.3316, allocations: 10.44 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003077/0.3319, allocations: 167 kB / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.3321, allocations: 0.6924 MB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.291e-05/0.3322, allocations: 8.422 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.301e-05/0.3322, allocations: 11.44 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of SimCode: time 2.6e-07/0.3322, allocations: 0 / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of Templates: time 0.002523/0.3347, allocations: 460.4 kB / 1.032 GB, free: 11.8 MB / 0.8106 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 -s gbode -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