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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001196/0.001196, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001193/0.001193, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.721/1.721, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.677/4.677, allocations: 461.9 MB / 0.7343 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002283/0.002283, allocations: 67.91 kB / 0.8987 GB, free: 37.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2674, allocations: 157.4 MB / 1.052 GB, free: 8.57 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_gal): time 0.001957/0.2694, allocations: 0.8941 MB / 1.053 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001055/0.2695, allocations: 39.8 kB / 1.053 GB, free: 7.637 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.805e-05/0.2696, allocations: 0 / 1.053 GB, free: 7.637 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.31e-05/0.2696, allocations: 7.922 kB / 1.053 GB, free: 7.629 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.035e-05/0.2697, allocations: 7.938 kB / 1.053 GB, free: 7.621 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 4.683e-05/0.2698, allocations: 19.98 kB / 1.053 GB, free: 7.602 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.449e-05/0.2699, allocations: 59.84 kB / 1.053 GB, free: 7.543 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.27, allocations: 47.95 kB / 1.053 GB, free: 7.496 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.958e-05/0.27, allocations: 27.81 kB / 1.053 GB, free: 7.469 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.496e-05/0.2701, allocations: 31.84 kB / 1.054 GB, free: 7.438 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.2701, allocations: 4 kB / 1.054 GB, free: 7.434 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.331e-05/0.2701, allocations: 8 kB / 1.054 GB, free: 7.426 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.706e-05/0.2702, allocations: 11.94 kB / 1.054 GB, free: 7.414 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.908e-05/0.2702, allocations: 43.73 kB / 1.054 GB, free: 7.371 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.496e-05/0.2703, allocations: 63.98 kB / 1.054 GB, free: 7.309 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2703, allocations: 0 / 1.054 GB, free: 7.309 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.252e-06/0.2703, allocations: 0 / 1.054 GB, free: 7.309 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.2703, allocations: 0 / 1.054 GB, free: 7.309 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.00036/0.2707, allocations: 379.3 kB / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.2707, allocations: 12.62 kB / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.617e-05/0.2708, allocations: 38.75 kB / 1.054 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.476e-05/0.2708, allocations: 8.844 kB / 1.054 GB, free: 6.82 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001736/0.271, allocations: 200.1 kB / 1.054 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.271, allocations: 8.281 kB / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.271, allocations: 8.375 kB / 1.054 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00017/0.2712, allocations: 97.45 kB / 1.054 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.2712, allocations: 11.88 kB / 1.054 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-06/0.2712, allocations: 0 / 1.054 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.2712, allocations: 0 / 1.054 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.348e-05/0.2713, allocations: 35.98 kB / 1.054 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004945/0.2718, allocations: 448.6 kB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.729e-05/0.2719, allocations: 37.16 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.168e-05/0.2719, allocations: 17.84 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 6.602e-06/0.2719, allocations: 3.938 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.272, allocations: 42.5 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.272, allocations: 0 / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.000157/0.2721, allocations: 57.53 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.256e-05/0.2722, allocations: 81.05 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.2723, allocations: 162.2 kB / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.063e-05/0.2723, allocations: 25.7 kB / 1.055 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.508e-05/0.2724, allocations: 100 kB / 1.055 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.504e-06/0.2724, allocations: 4.156 kB / 1.055 GB, free: 5.328 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.292e-05/0.2725, allocations: 21.72 kB / 1.055 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.348e-05/0.2725, allocations: 322.8 kB / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.831e-05/0.2726, allocations: 4 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.12e-05/0.2726, allocations: 17.72 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.884e-05/0.2726, allocations: 21.72 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-06/0.2726, allocations: 7.938 kB / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.146e-05/0.2727, allocations: 57.59 kB / 1.056 GB, free: 4.852 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.2728, allocations: 11.94 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.2728, allocations: 0 / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.2728, allocations: 0 / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.944e-05/0.2728, allocations: 8 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.2729, allocations: 3.938 kB / 1.056 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.054e-05/0.2729, allocations: 7.844 kB / 1.056 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.784e-06/0.2729, allocations: 7.984 kB / 1.056 GB, free: 4.812 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.31e-05/0.273, allocations: 117.9 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.306e-05/0.273, allocations: 11.84 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.244e-05/0.2731, allocations: 7.969 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.2731, allocations: 7.984 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2731, allocations: 7.938 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.2731, allocations: 0 / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000345/0.2734, allocations: 466.8 kB / 1.056 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.2734, allocations: 8.016 kB / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.998e-05/0.2735, allocations: 4 kB / 1.056 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2735, allocations: 0 / 1.056 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.05e-06/0.2735, allocations: 0 / 1.056 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.2735, allocations: 0 / 1.056 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2735, allocations: 0 / 1.056 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.609e-05/0.2736, allocations: 89.78 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.073e-05/0.2736, allocations: 85 kB / 1.057 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.41e-05/0.2736, allocations: 4 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.066e-05/0.2737, allocations: 0 / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.142e-05/0.2737, allocations: 4 kB / 1.057 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-06/0.2737, allocations: 0 / 1.057 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.59e-05/0.2738, allocations: 126 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2738, allocations: 0 / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000191/0.274, allocations: 8 kB / 1.057 GB, free: 3.773 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.0002962/0.2743, allocations: 0.6171 MB / 1.057 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 7.94e-05/0.2744, allocations: 19.92 kB / 1.057 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2744, allocations: 0 / 1.057 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.112e-05/0.2744, allocations: 12.16 kB / 1.057 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001519/0.2746, allocations: 9.484 kB / 1.057 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.2756, allocations: 1.339 MB / 1.059 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001963/0.2758, allocations: 0.6963 MB / 1.059 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.066e-05/0.2758, allocations: 4.438 kB / 1.059 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.964e-05/0.2759, allocations: 23.42 kB / 1.059 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of SimCode: time 2.4e-07/0.2759, allocations: 0 / 1.059 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.331/1.607, allocations: 1.47 MB / 1.061 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000316/1.607, allocations: 207.8 kB / 1.061 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.959/5.567, allocations: 0 / 1.061 GB, free: 15.31 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_gal_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_gal_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.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