Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.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: "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",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.009464/0.009464, allocations: 100.6 kB / 15.73 MB, free: 6.043 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.001979/0.00198, allocations: 191.2 kB / 16.67 MB, free: 5.957 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.412/2.412, allocations: 437 MB / 0.7105 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 59.91 kB / 1.018 GB, free: 9.902 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.829/0.8304, allocations: 151.6 MB / 1.166 GB, free: 3.902 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002606/0.8331, allocations: 0.8332 MB / 1.167 GB, free: 3.07 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0001598/0.8333, allocations: 39.78 kB / 1.167 GB, free: 3.031 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.206e-05/0.8334, allocations: 4 kB / 1.167 GB, free: 3.027 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 5.061e-05/0.8334, allocations: 7.875 kB / 1.167 GB, free: 3.02 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.079e-05/0.8335, allocations: 15.86 kB / 1.167 GB, free: 3.004 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 4.79e-05/0.8336, allocations: 15.98 kB / 1.167 GB, free: 2.988 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001049/0.8337, allocations: 63.84 kB / 1.167 GB, free: 2.926 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.8339, allocations: 43.97 kB / 1.167 GB, free: 2.883 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 6.529e-05/0.8339, allocations: 27.86 kB / 1.167 GB, free: 2.855 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.56e-05/0.834, allocations: 31.8 kB / 1.167 GB, free: 2.824 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.7e-05/0.834, allocations: 8 kB / 1.167 GB, free: 2.816 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 9.357e-06/0.834, allocations: 4 kB / 1.167 GB, free: 2.812 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.08e-05/0.834, allocations: 15.92 kB / 1.167 GB, free: 2.797 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.762e-05/0.8341, allocations: 27.81 kB / 1.167 GB, free: 2.77 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001159/0.8342, allocations: 81.94 kB / 1.167 GB, free: 2.691 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.8342, allocations: 0 / 1.167 GB, free: 2.691 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.156e-06/0.8342, allocations: 0 / 1.167 GB, free: 2.691 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.8342, allocations: 3.938 kB / 1.167 GB, free: 2.688 MB / 0.8887 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.0004387/0.8347, allocations: 383.2 kB / 1.168 GB, free: 2.262 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.8347, allocations: 8.922 kB / 1.168 GB, free: 2.254 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.669e-05/0.8348, allocations: 46.67 kB / 1.168 GB, free: 2.199 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.762e-05/0.8348, allocations: 8.844 kB / 1.168 GB, free: 2.191 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001854/0.835, allocations: 188.2 kB / 1.168 GB, free: 1.969 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.835, allocations: 4.375 kB / 1.168 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.5e-05/0.835, allocations: 12.36 kB / 1.168 GB, free: 1.953 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000142/0.8352, allocations: 94.33 kB / 1.168 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.8352, allocations: 7.938 kB / 1.168 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.8352, allocations: 7.938 kB / 1.168 GB, free: 1.836 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.8352, allocations: 4 kB / 1.168 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.144e-05/0.8353, allocations: 31.98 kB / 1.168 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000587/0.8359, allocations: 440.5 kB / 1.169 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 6.586e-05/0.836, allocations: 45.2 kB / 1.169 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.87e-05/0.836, allocations: 21.77 kB / 1.169 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.153e-05/0.8361, allocations: 4.031 kB / 1.169 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.8361, allocations: 34.56 kB / 1.169 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.8361, allocations: 0 / 1.169 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0001868/0.8363, allocations: 57.48 kB / 1.169 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.8363, allocations: 77.11 kB / 1.169 GB, free: 1.023 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001485/0.8365, allocations: 160.9 kB / 1.169 GB, free: 0.8594 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.8365, allocations: 25.7 kB / 1.169 GB, free: 0.8281 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 7.608e-05/0.8366, allocations: 104 kB / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 9.337e-06/0.8366, allocations: 11.91 kB / 1.169 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-05/0.8367, allocations: 17.7 kB / 1.169 GB, free: 0.6875 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.8368, allocations: 315.1 kB / 1.169 GB, free: 380 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.441e-05/0.8368, allocations: 19.98 kB / 1.169 GB, free: 360 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.248e-05/0.8368, allocations: 13.72 kB / 1.169 GB, free: 340 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.298e-05/0.8369, allocations: 29.66 kB / 1.169 GB, free: 304 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.8369, allocations: 4 kB / 1.169 GB, free: 300 kB / 0.8887 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.773e-05/0.837, allocations: 53.59 kB / 1.169 GB, free: 240 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.837, allocations: 18.59 kB / 1.169 GB, free: 224 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.837, allocations: 0 / 1.169 GB, free: 224 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.8371, allocations: 4 kB / 1.169 GB, free: 220 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.93e-05/0.8371, allocations: 7.938 kB / 1.17 GB, free: 212 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.8371, allocations: 0 / 1.17 GB, free: 212 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.292e-05/0.8372, allocations: 11.91 kB / 1.17 GB, free: 200 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.649e-06/0.8372, allocations: 0 / 1.17 GB, free: 200 kB / 0.8887 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.65e-05/0.8373, allocations: 112 kB / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.218e-05/0.8373, allocations: 15.84 kB / 1.17 GB, free: 64 kB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.754e-05/0.8374, allocations: 15.86 kB / 1.17 GB, free: 40 kB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.8374, allocations: 0 / 1.17 GB, free: 40 kB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.8374, allocations: 0 / 1.17 GB, free: 40 kB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.8374, allocations: 0 / 1.17 GB, free: 40 kB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003966/0.8378, allocations: 470.8 kB / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.8378, allocations: 0 / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.94e-05/0.8378, allocations: 4 kB / 1.17 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.8378, allocations: 0 / 1.17 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.8378, allocations: 8.062 kB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.8379, allocations: 3.938 kB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.8379, allocations: 3.984 kB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.082e-05/0.8379, allocations: 77.78 kB / 1.17 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.059e-05/0.838, allocations: 96.94 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.838, allocations: 0 / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.997e-05/0.8381, allocations: 4.031 kB / 1.17 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.571e-05/0.8381, allocations: 4 kB / 1.17 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.8381, allocations: 0 / 1.17 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.132e-05/0.8382, allocations: 121.7 kB / 1.17 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8382, allocations: 0 / 1.17 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002008/0.8384, allocations: 11.91 kB / 1.17 GB, free: 15.15 MB / 0.9044 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.0004016/0.8388, allocations: 0.617 MB / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 8.426e-05/0.8389, allocations: 16 kB / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.8389, allocations: 0 / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.323e-05/0.8389, allocations: 11.94 kB / 1.171 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001606/0.8391, allocations: 7.984 kB / 1.171 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.8403, allocations: 1.336 MB / 1.172 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002517/0.8406, allocations: 0.6923 MB / 1.173 GB, free: 12.31 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.353e-05/0.8406, allocations: 8.422 kB / 1.173 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.891e-05/0.8407, allocations: 23.44 kB / 1.173 GB, free: 12.28 MB / 0.9044 GB Notification: Performance of SimCode: time 3.5e-07/0.8407, allocations: 7.938 kB / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01684/0.8575, allocations: 1.574 MB / 1.175 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.587/8.444, allocations: 6.359 kB / 1.175 GB, free: 10.79 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches