Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_9_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.001066/0.001066, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.244/1.244, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.084/2.084, allocations: 390.2 MB / 0.6647 GB, free: 492 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 63.91 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.474/0.4751, allocations: 140.4 MB / 0.9497 GB, free: 9.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001965/0.4771, allocations: 0.8252 MB / 0.9505 GB, free: 8.43 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001151/0.4773, allocations: 41.47 kB / 0.9506 GB, free: 8.395 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.032e-05/0.4773, allocations: 1.188 kB / 0.9506 GB, free: 8.395 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.678e-05/0.4774, allocations: 11.86 kB / 0.9506 GB, free: 8.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.222e-05/0.4775, allocations: 9.062 kB / 0.9506 GB, free: 8.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 5.108e-05/0.4775, allocations: 15.42 kB / 0.9506 GB, free: 8.363 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001012/0.4776, allocations: 68.41 kB / 0.9507 GB, free: 8.32 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.4778, allocations: 40.59 kB / 0.9507 GB, free: 8.297 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.005e-05/0.4779, allocations: 23.83 kB / 0.9507 GB, free: 8.281 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.851e-05/0.4779, allocations: 27.67 kB / 0.9508 GB, free: 8.258 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.08e-05/0.4779, allocations: 6 kB / 0.9508 GB, free: 8.258 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.359e-05/0.478, allocations: 10.94 kB / 0.9508 GB, free: 8.254 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.775e-05/0.478, allocations: 13.14 kB / 0.9508 GB, free: 8.242 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.965e-05/0.478, allocations: 35.55 kB / 0.9508 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001006/0.4781, allocations: 74.67 kB / 0.9509 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.4781, allocations: 0 / 0.9509 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.515e-06/0.4781, allocations: 0 / 0.9509 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.054e-05/0.4782, allocations: 1.312 kB / 0.9509 GB, free: 8.156 MB / 0.7169 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.000399/0.4786, allocations: 378.3 kB / 0.9512 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.4786, allocations: 13 kB / 0.9513 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.841e-05/0.4787, allocations: 45.23 kB / 0.9513 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.793e-05/0.4787, allocations: 14.12 kB / 0.9513 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002002/0.4789, allocations: 186 kB / 0.9515 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.4789, allocations: 14.98 kB / 0.9515 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.845e-05/0.479, allocations: 10.03 kB / 0.9515 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000163/0.4791, allocations: 90.95 kB / 0.9516 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.4792, allocations: 3.938 kB / 0.9516 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.4792, allocations: 4.719 kB / 0.9516 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.4792, allocations: 6.5 kB / 0.9516 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.811e-05/0.4793, allocations: 31.02 kB / 0.9516 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004921/0.4798, allocations: 442.3 kB / 0.9521 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.659e-05/0.4798, allocations: 40.92 kB / 0.9521 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.626e-05/0.4799, allocations: 23.62 kB / 0.9521 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/0.4799, allocations: 0 / 0.9521 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.614e-05/0.4799, allocations: 31.75 kB / 0.9522 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.613e-06/0.4799, allocations: 0 / 0.9522 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001875/0.4801, allocations: 63.22 kB / 0.9522 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.4802, allocations: 87.25 kB / 0.9523 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.4803, allocations: 158.3 kB / 0.9525 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.696e-06/0.4803, allocations: 27.2 kB / 0.9525 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.409e-05/0.4804, allocations: 110.9 kB / 0.9526 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 8.495e-06/0.4804, allocations: 5.688 kB / 0.9526 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.987e-05/0.4804, allocations: 18.02 kB / 0.9526 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.964e-05/0.4805, allocations: 320.2 kB / 0.9529 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.729e-05/0.4805, allocations: 16.2 kB / 0.9529 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.66e-05/0.4805, allocations: 13.94 kB / 0.9529 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.366e-05/0.4806, allocations: 30.03 kB / 0.953 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4806, allocations: 1.406 kB / 0.953 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.463e-05/0.4806, allocations: 54.75 kB / 0.953 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.4807, allocations: 8.906 kB / 0.953 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.768e-06/0.4807, allocations: 8 kB / 0.953 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.4807, allocations: 2.406 kB / 0.953 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.23e-05/0.4807, allocations: 4.438 kB / 0.9531 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.4808, allocations: 1.281 kB / 0.9531 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.75e-05/0.4808, allocations: 6.281 kB / 0.9531 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.178e-06/0.4808, allocations: 1.094 kB / 0.9531 GB, free: 5.93 MB / 0.7169 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 4.211e-05/0.4808, allocations: 114 kB / 0.9532 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.875e-05/0.4809, allocations: 10.81 kB / 0.9532 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.72e-05/0.4809, allocations: 10.7 kB / 0.9532 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.4809, allocations: 5.188 kB / 0.9532 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.4809, allocations: 1.25 kB / 0.9532 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.4809, allocations: 0 / 0.9532 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000227/0.4812, allocations: 474.8 kB / 0.9536 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.4812, allocations: 3.938 kB / 0.9537 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.622e-05/0.4812, allocations: 4.625 kB / 0.9537 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.4812, allocations: 0 / 0.9537 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.4812, allocations: 5.469 kB / 0.9537 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.614e-06/0.4812, allocations: 3.984 kB / 0.9537 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4812, allocations: 1.812 kB / 0.9537 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.354e-05/0.4813, allocations: 81.44 kB / 0.9537 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.712e-05/0.4813, allocations: 95.75 kB / 0.9538 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.222e-05/0.4813, allocations: 5.406 kB / 0.9538 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.93e-05/0.4814, allocations: 4.031 kB / 0.9538 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.261e-05/0.4814, allocations: 1.344 kB / 0.9538 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.4814, allocations: 1.188 kB / 0.9538 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.635e-05/0.4814, allocations: 121.1 kB / 0.954 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.4814, allocations: 0 / 0.954 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001726/0.4816, allocations: 10.34 kB / 0.954 GB, free: 4.973 MB / 0.7169 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.0001902/0.4818, allocations: 0.6158 MB / 0.9546 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.988e-05/0.4819, allocations: 15.09 kB / 0.9546 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.542e-06/0.4819, allocations: 0 / 0.9546 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.157e-05/0.4819, allocations: 12.34 kB / 0.9546 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001457/0.4821, allocations: 11.33 kB / 0.9546 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008751/0.4829, allocations: 1.318 MB / 0.9559 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001183/0.4831, allocations: 0.6985 MB / 0.9566 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.013e-05/0.4831, allocations: 8.953 kB / 0.9566 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.067e-05/0.4832, allocations: 23.44 kB / 0.9566 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.4832, allocations: 0 / 0.9566 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.447/1.93, allocations: 1.544 MB / 0.9581 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/12.11, allocations: 3.188 kB / 0.9581 GB, free: 1.52 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches