Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: translateModel(Buildings.Controls.OBC.UnitConversions.Validation.To_gal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_10_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_10_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.008276/0.008276, allocations: 99.42 kB / 15.73 MB, free: 6.039 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.001717/0.001717, allocations: 202 kB / 16.68 MB, free: 5.965 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.519/1.519, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.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.727/2.727, allocations: 437 MB / 0.7105 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 59.91 kB / 1.019 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4119/0.4132, allocations: 151.6 MB / 1.167 GB, free: 6.902 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_gal): time 0.00295/0.4162, allocations: 0.8217 MB / 1.167 GB, free: 6.074 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0002035/0.4164, allocations: 43.86 kB / 1.167 GB, free: 6.031 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.399e-05/0.4165, allocations: 0 / 1.167 GB, free: 6.031 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 5.367e-05/0.4166, allocations: 15.8 kB / 1.167 GB, free: 6.016 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001305/0.4168, allocations: 15.86 kB / 1.167 GB, free: 6 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 7.585e-05/0.4168, allocations: 19.92 kB / 1.168 GB, free: 5.98 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001543/0.417, allocations: 55.91 kB / 1.168 GB, free: 5.926 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002089/0.4172, allocations: 47.97 kB / 1.168 GB, free: 5.879 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.863e-05/0.4173, allocations: 27.81 kB / 1.168 GB, free: 5.852 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.877e-05/0.4174, allocations: 31.78 kB / 1.168 GB, free: 5.82 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.224e-05/0.4174, allocations: 4 kB / 1.168 GB, free: 5.816 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.458e-05/0.4174, allocations: 8 kB / 1.168 GB, free: 5.809 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.87e-05/0.4175, allocations: 11.94 kB / 1.168 GB, free: 5.797 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.181e-05/0.4175, allocations: 35.8 kB / 1.168 GB, free: 5.762 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001908/0.4177, allocations: 83.52 kB / 1.168 GB, free: 5.68 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.4178, allocations: 0 / 1.168 GB, free: 5.68 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.447e-06/0.4178, allocations: 0 / 1.168 GB, free: 5.68 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.38e-05/0.4178, allocations: 0 / 1.168 GB, free: 5.68 MB / 0.92 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.0006735/0.4185, allocations: 383.1 kB / 1.168 GB, free: 5.254 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.721e-05/0.4185, allocations: 8.031 kB / 1.168 GB, free: 5.246 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.866e-05/0.4186, allocations: 16.84 kB / 1.168 GB, free: 5.23 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003123/0.4189, allocations: 192.3 kB / 1.168 GB, free: 5.004 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.4189, allocations: 384 / 1.168 GB, free: 5.004 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.366e-05/0.419, allocations: 16.38 kB / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002034/0.4192, allocations: 97.84 kB / 1.168 GB, free: 4.883 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.4192, allocations: 192 / 1.168 GB, free: 4.883 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.4192, allocations: 7.938 kB / 1.168 GB, free: 4.875 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.557e-06/0.4192, allocations: 4 kB / 1.169 GB, free: 4.871 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.964e-05/0.4193, allocations: 39.92 kB / 1.169 GB, free: 4.832 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007209/0.4201, allocations: 436.7 kB / 1.169 GB, free: 4.352 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 8.72e-05/0.4202, allocations: 37.25 kB / 1.169 GB, free: 4.297 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.821e-05/0.4202, allocations: 21.77 kB / 1.169 GB, free: 4.27 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.199e-05/0.4202, allocations: 0 / 1.169 GB, free: 4.27 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.916e-05/0.4203, allocations: 38.56 kB / 1.169 GB, free: 4.223 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 8.22e-07/0.4203, allocations: 0 / 1.169 GB, free: 4.223 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0002455/0.4205, allocations: 57.53 kB / 1.169 GB, free: 4.16 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.14e-05/0.4206, allocations: 77.11 kB / 1.169 GB, free: 4.066 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001884/0.4208, allocations: 155.9 kB / 1.169 GB, free: 3.906 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.4209, allocations: 25.7 kB / 1.169 GB, free: 3.875 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.421, allocations: 108.1 kB / 1.169 GB, free: 3.766 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.558e-05/0.421, allocations: 12.14 kB / 1.169 GB, free: 3.754 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.83e-05/0.4211, allocations: 21.7 kB / 1.169 GB, free: 3.727 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000167/0.4212, allocations: 314.8 kB / 1.17 GB, free: 3.41 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.038e-05/0.4213, allocations: 8 kB / 1.17 GB, free: 3.402 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.793e-05/0.4213, allocations: 25.69 kB / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.616e-05/0.4214, allocations: 29.66 kB / 1.17 GB, free: 3.336 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.4214, allocations: 4 kB / 1.17 GB, free: 3.332 MB / 0.92 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.715e-05/0.4215, allocations: 65.53 kB / 1.17 GB, free: 3.262 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.4215, allocations: 4 kB / 1.17 GB, free: 3.258 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.4215, allocations: 7.938 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.4215, allocations: 0 / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.663e-05/0.4216, allocations: 4 kB / 1.17 GB, free: 3.246 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.4216, allocations: 0 / 1.17 GB, free: 3.246 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.267e-05/0.4217, allocations: 4 kB / 1.17 GB, free: 3.242 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.691e-06/0.4217, allocations: 0 / 1.17 GB, free: 3.242 MB / 0.92 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 0.0001238/0.4218, allocations: 117.9 kB / 1.17 GB, free: 3.117 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.216e-05/0.4219, allocations: 7.953 kB / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.869e-05/0.4219, allocations: 15.8 kB / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.4219, allocations: 0 / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.4219, allocations: 3.938 kB / 1.17 GB, free: 3.086 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.422, allocations: 0 / 1.17 GB, free: 3.086 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004941/0.4225, allocations: 478.7 kB / 1.171 GB, free: 2.555 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.4225, allocations: 0 / 1.171 GB, free: 2.555 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.67e-05/0.4225, allocations: 4 kB / 1.171 GB, free: 2.551 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.4225, allocations: 0 / 1.171 GB, free: 2.551 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.4225, allocations: 4 kB / 1.171 GB, free: 2.547 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.4225, allocations: 0 / 1.171 GB, free: 2.547 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.4225, allocations: 11.92 kB / 1.171 GB, free: 2.535 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001168/0.4227, allocations: 81.95 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 6.756e-05/0.4227, allocations: 89.05 kB / 1.171 GB, free: 2.328 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.4228, allocations: 0 / 1.171 GB, free: 2.328 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.954e-05/0.4228, allocations: 0 / 1.171 GB, free: 2.328 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.03e-05/0.4228, allocations: 4 kB / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-06/0.4228, allocations: 0 / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of sorting global known variables: time 9.359e-05/0.4229, allocations: 119.9 kB / 1.171 GB, free: 2.207 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4229, allocations: 0 / 1.171 GB, free: 2.207 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002088/0.4231, allocations: 12 kB / 1.171 GB, free: 2.195 MB / 0.92 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.0001257/0.4233, allocations: 103.2 kB / 1.171 GB, free: 2.086 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 9.759e-05/0.4234, allocations: 27.92 kB / 1.171 GB, free: 2.059 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4234, allocations: 0 / 1.171 GB, free: 2.059 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 1.104e-05/0.4234, allocations: 4 kB / 1.171 GB, free: 2.055 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001693/0.4236, allocations: 11.94 kB / 1.171 GB, free: 2.043 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003296/0.4239, allocations: 166.7 kB / 1.171 GB, free: 1.844 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.4242, allocations: 0.6962 MB / 1.172 GB, free: 1.121 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 3.35e-05/0.4243, allocations: 4.438 kB / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.66e-05/0.4243, allocations: 11.44 kB / 1.172 GB, free: 1.105 MB / 0.92 GB Notification: Performance of SimCode: time 2.21e-07/0.4243, allocations: 0 / 1.172 GB, free: 1.105 MB / 0.92 GB Notification: Performance of Templates: time 0.002743/0.427, allocations: 460.6 kB / 1.172 GB, free: 0.6562 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.makefile (rm -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.sim & ./Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_UnitConversions_Validation_To_gal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_gal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches