Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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_ton,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_latest_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.009171/0.009171, allocations: 100.4 kB / 15.73 MB, free: 5.977 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.001179/0.001179, allocations: 195.8 kB / 16.67 MB, free: 5.914 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.728/2.728, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002592/0.002592, allocations: 67.91 kB / 1.054 GB, free: 7.672 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3313, allocations: 157.4 MB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002524/0.3338, allocations: 0.8232 MB / 1.208 GB, free: 9.355 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0001577/0.334, allocations: 39.78 kB / 1.208 GB, free: 9.316 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.946e-05/0.3341, allocations: 8 kB / 1.208 GB, free: 9.309 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.564e-05/0.3342, allocations: 7.875 kB / 1.208 GB, free: 9.301 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.396e-05/0.3343, allocations: 11.92 kB / 1.208 GB, free: 9.289 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 5.716e-05/0.3343, allocations: 19.92 kB / 1.208 GB, free: 9.27 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001137/0.3345, allocations: 59.84 kB / 1.208 GB, free: 9.211 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.3346, allocations: 47.92 kB / 1.208 GB, free: 9.164 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.323e-05/0.3347, allocations: 31.84 kB / 1.208 GB, free: 9.133 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.966e-05/0.3348, allocations: 23.86 kB / 1.208 GB, free: 9.109 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.982e-05/0.3348, allocations: 4 kB / 1.208 GB, free: 9.105 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.674e-05/0.3348, allocations: 8 kB / 1.208 GB, free: 9.098 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.561e-05/0.3348, allocations: 15.92 kB / 1.208 GB, free: 9.082 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.857e-05/0.3349, allocations: 39.67 kB / 1.208 GB, free: 9.043 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001399/0.3351, allocations: 79.92 kB / 1.208 GB, free: 8.965 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3351, allocations: 4 kB / 1.208 GB, free: 8.961 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.783e-06/0.3351, allocations: 0 / 1.208 GB, free: 8.961 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.126e-05/0.3351, allocations: 0 / 1.208 GB, free: 8.961 MB / 0.9669 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.0005145/0.3356, allocations: 379.2 kB / 1.209 GB, free: 8.539 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.3357, allocations: 12.56 kB / 1.209 GB, free: 8.527 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.718e-05/0.3357, allocations: 38.75 kB / 1.209 GB, free: 8.48 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.418e-05/0.3358, allocations: 8.844 kB / 1.209 GB, free: 8.473 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.336, allocations: 192.1 kB / 1.209 GB, free: 8.246 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.336, allocations: 8.375 kB / 1.209 GB, free: 8.238 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.503e-05/0.336, allocations: 12.38 kB / 1.209 GB, free: 8.227 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001665/0.3362, allocations: 89.52 kB / 1.209 GB, free: 8.129 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.3362, allocations: 3.938 kB / 1.209 GB, free: 8.125 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.3363, allocations: 7.938 kB / 1.209 GB, free: 8.117 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.501e-05/0.3363, allocations: 7.984 kB / 1.209 GB, free: 8.109 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.439e-05/0.3364, allocations: 31.98 kB / 1.209 GB, free: 8.078 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000566/0.337, allocations: 436.5 kB / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.244e-05/0.337, allocations: 41.33 kB / 1.21 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.465e-05/0.3371, allocations: 17.78 kB / 1.21 GB, free: 7.516 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-06/0.3371, allocations: 0 / 1.21 GB, free: 7.516 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.415e-05/0.3371, allocations: 42.5 kB / 1.21 GB, free: 7.465 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.3371, allocations: 0 / 1.21 GB, free: 7.465 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001859/0.3373, allocations: 53.53 kB / 1.21 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.3373, allocations: 81.05 kB / 1.21 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.3375, allocations: 165 kB / 1.21 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.39e-05/0.3375, allocations: 25.7 kB / 1.21 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.092e-05/0.3376, allocations: 100.2 kB / 1.21 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.306e-05/0.3376, allocations: 19.97 kB / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.423e-05/0.3376, allocations: 17.62 kB / 1.21 GB, free: 6.965 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001747/0.3378, allocations: 318.8 kB / 1.21 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.257e-05/0.3378, allocations: 11.98 kB / 1.21 GB, free: 6.633 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.171e-05/0.3379, allocations: 13.72 kB / 1.211 GB, free: 6.613 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.304e-05/0.3379, allocations: 29.72 kB / 1.211 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3379, allocations: 0 / 1.211 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.907e-05/0.338, allocations: 61.53 kB / 1.211 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.338, allocations: 7.938 kB / 1.211 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.3381, allocations: 0 / 1.211 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.3381, allocations: 4 kB / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.581e-05/0.3381, allocations: 4 kB / 1.211 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.3382, allocations: 0 / 1.211 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.624e-05/0.3382, allocations: 11.94 kB / 1.211 GB, free: 6.484 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.1e-06/0.3382, allocations: 0 / 1.211 GB, free: 6.484 MB / 0.9669 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.931e-05/0.3383, allocations: 125.8 kB / 1.211 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.479e-05/0.3383, allocations: 11.84 kB / 1.211 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.479e-05/0.3384, allocations: 7.875 kB / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.3384, allocations: 3.938 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3384, allocations: 4 kB / 1.211 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.3384, allocations: 0 / 1.211 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003671/0.3388, allocations: 478.7 kB / 1.211 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.3388, allocations: 0 / 1.211 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.194e-05/0.3388, allocations: 4 kB / 1.211 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.3388, allocations: 3.984 kB / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.3388, allocations: 4 kB / 1.211 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.3388, allocations: 0 / 1.211 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3388, allocations: 0 / 1.211 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.76e-05/0.3389, allocations: 81.84 kB / 1.211 GB, free: 5.68 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.081e-05/0.339, allocations: 93 kB / 1.211 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.308e-05/0.339, allocations: 0 / 1.211 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.945e-05/0.339, allocations: 0 / 1.211 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.347e-05/0.3391, allocations: 4 kB / 1.211 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-06/0.3391, allocations: 0 / 1.211 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.681e-05/0.3392, allocations: 121.5 kB / 1.212 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.6e-07/0.3392, allocations: 0 / 1.212 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000189/0.3394, allocations: 8 kB / 1.212 GB, free: 5.441 MB / 0.9669 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.0003618/0.3397, allocations: 0.6132 MB / 1.212 GB, free: 4.797 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 8.731e-05/0.3398, allocations: 27.86 kB / 1.212 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3398, allocations: 160 / 1.212 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.097e-05/0.3398, allocations: 12 kB / 1.212 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001545/0.34, allocations: 8 kB / 1.212 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001161/0.3412, allocations: 1.322 MB / 1.213 GB, free: 3.328 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002418/0.3414, allocations: 0.6968 MB / 1.214 GB, free: 2.605 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.516e-05/0.3415, allocations: 8.422 kB / 1.214 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.339e-05/0.3415, allocations: 23.44 kB / 1.214 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of SimCode: time 6.51e-07/0.3415, allocations: 0 / 1.214 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0174/0.3589, allocations: 1.603 MB / 1.216 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.375/7.734, allocations: 14.16 kB / 1.216 GB, free: 1.074 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches