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.01107/0.01107, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.002005/0.002005, allocations: 185.3 kB / 16.67 MB, free: 5.977 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.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.905/2.905, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 63.91 kB / 1.054 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3407, allocations: 157.4 MB / 1.207 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002146/0.3429, allocations: 0.8215 MB / 1.208 GB, free: 9.344 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0001645/0.343, allocations: 47.78 kB / 1.208 GB, free: 9.297 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.999e-05/0.3431, allocations: 0 / 1.208 GB, free: 9.297 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.401e-05/0.3432, allocations: 7.875 kB / 1.208 GB, free: 9.289 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.628e-05/0.3433, allocations: 7.875 kB / 1.208 GB, free: 9.281 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 5.599e-05/0.3434, allocations: 19.97 kB / 1.208 GB, free: 9.262 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.3435, allocations: 63.84 kB / 1.208 GB, free: 9.199 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.3436, allocations: 43.92 kB / 1.208 GB, free: 9.156 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.532e-05/0.3437, allocations: 31.8 kB / 1.208 GB, free: 9.125 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.868e-05/0.3438, allocations: 27.84 kB / 1.208 GB, free: 9.098 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.956e-05/0.3438, allocations: 12 kB / 1.208 GB, free: 9.086 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.967e-06/0.3438, allocations: 4 kB / 1.208 GB, free: 9.082 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.484e-05/0.3439, allocations: 19.92 kB / 1.208 GB, free: 9.062 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.843e-05/0.3439, allocations: 27.75 kB / 1.208 GB, free: 9.035 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001302/0.344, allocations: 87.84 kB / 1.208 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.344, allocations: 0 / 1.208 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.763e-06/0.344, allocations: 0 / 1.208 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.3441, allocations: 0 / 1.208 GB, free: 8.949 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.0004865/0.3446, allocations: 375.2 kB / 1.209 GB, free: 8.531 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.3446, allocations: 12.62 kB / 1.209 GB, free: 8.52 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.683e-05/0.3447, allocations: 42.73 kB / 1.209 GB, free: 8.469 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.868e-05/0.3447, allocations: 8.844 kB / 1.209 GB, free: 8.461 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002149/0.3449, allocations: 192.2 kB / 1.209 GB, free: 8.234 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.3449, allocations: 4.375 kB / 1.209 GB, free: 8.23 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.661e-05/0.345, allocations: 8.375 kB / 1.209 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001512/0.3451, allocations: 91.88 kB / 1.209 GB, free: 8.121 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.3451, allocations: 3.938 kB / 1.209 GB, free: 8.117 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.3452, allocations: 12 kB / 1.209 GB, free: 8.105 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.3452, allocations: 0 / 1.209 GB, free: 8.105 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.524e-05/0.3452, allocations: 39.92 kB / 1.209 GB, free: 8.066 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005373/0.3458, allocations: 428.6 kB / 1.21 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 6.807e-05/0.3459, allocations: 37.25 kB / 1.21 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.476e-05/0.3459, allocations: 25.77 kB / 1.21 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.196e-05/0.3459, allocations: 7.938 kB / 1.21 GB, free: 7.5 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.524e-05/0.346, allocations: 30.56 kB / 1.21 GB, free: 7.461 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.346, allocations: 0 / 1.21 GB, free: 7.461 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001931/0.3462, allocations: 57.48 kB / 1.21 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.3462, allocations: 85.36 kB / 1.21 GB, free: 7.297 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.3464, allocations: 156.4 kB / 1.21 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.3464, allocations: 29.7 kB / 1.21 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.138e-05/0.3465, allocations: 107.9 kB / 1.21 GB, free: 6.992 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 8.256e-06/0.3465, allocations: 3.984 kB / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.988e-05/0.3466, allocations: 25.61 kB / 1.21 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.3467, allocations: 318.8 kB / 1.21 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.841e-05/0.3467, allocations: 4 kB / 1.21 GB, free: 6.633 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.553e-05/0.3467, allocations: 25.7 kB / 1.211 GB, free: 6.602 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.364e-05/0.3468, allocations: 29.66 kB / 1.211 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.3468, allocations: 0 / 1.211 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.567e-05/0.3469, allocations: 61.53 kB / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.3469, allocations: 7.938 kB / 1.211 GB, free: 6.492 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3469, allocations: 4 kB / 1.211 GB, free: 6.488 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.347, allocations: 4.062 kB / 1.211 GB, free: 6.484 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.346e-05/0.347, allocations: 4 kB / 1.211 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.347, allocations: 0 / 1.211 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.421e-05/0.3471, allocations: 7.938 kB / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.699e-06/0.3471, allocations: 0 / 1.211 GB, free: 6.473 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 0.0001045/0.3472, allocations: 113.8 kB / 1.211 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.082e-05/0.3472, allocations: 11.84 kB / 1.211 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.828e-05/0.3473, allocations: 19.86 kB / 1.211 GB, free: 6.32 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.3473, allocations: 0 / 1.211 GB, free: 6.32 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3473, allocations: 4 kB / 1.211 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.3473, allocations: 4 kB / 1.211 GB, free: 6.312 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004031/0.3477, allocations: 466.7 kB / 1.211 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.3477, allocations: 4 kB / 1.211 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.122e-05/0.3478, allocations: 0 / 1.211 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.3478, allocations: 4 kB / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.094e-06/0.3478, allocations: 0 / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.3478, allocations: 4.062 kB / 1.211 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3478, allocations: 4.031 kB / 1.211 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.757e-05/0.3479, allocations: 85.81 kB / 1.211 GB, free: 5.672 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.371e-05/0.348, allocations: 89 kB / 1.211 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.364e-05/0.348, allocations: 0 / 1.211 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.21e-05/0.348, allocations: 4 kB / 1.211 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.522e-05/0.348, allocations: 4.031 kB / 1.211 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-06/0.348, allocations: 0 / 1.211 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.752e-05/0.3481, allocations: 129.6 kB / 1.212 GB, free: 5.434 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3481, allocations: 0 / 1.212 GB, free: 5.434 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0001866/0.3483, allocations: 8 kB / 1.212 GB, free: 5.426 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.0004358/0.3488, allocations: 0.617 MB / 1.212 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 8.456e-05/0.3489, allocations: 23.88 kB / 1.212 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3489, allocations: 0 / 1.212 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.031e-05/0.3489, allocations: 4 kB / 1.212 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001681/0.3491, allocations: 15.42 kB / 1.212 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.3504, allocations: 1.331 MB / 1.213 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.3507, allocations: 0.6889 MB / 1.214 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.123e-05/0.3507, allocations: 8.422 kB / 1.214 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.664e-05/0.3508, allocations: 23.44 kB / 1.214 GB, free: 2.562 MB / 0.9669 GB Notification: Performance of SimCode: time 2.2e-07/0.3508, allocations: 0 / 1.214 GB, free: 2.562 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01762/0.3684, allocations: 1.607 MB / 1.216 GB, free: 1.066 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.488/7.856, allocations: 3.984 kB / 1.216 GB, free: 1.062 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