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.01107/0.01107, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.002612/0.002612, allocations: 189.1 kB / 16.67 MB, free: 5.523 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.854/1.854, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 3.438/3.438, allocations: 390.3 MB / 0.6648 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002325/0.002325, allocations: 59.91 kB / 0.9504 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.741/1.743, allocations: 140.4 MB / 1.087 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.004601/1.748, allocations: 0.8294 MB / 1.088 GB, free: 4.742 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0001906/1.748, allocations: 45.19 kB / 1.088 GB, free: 4.707 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.543e-05/1.748, allocations: 1 kB / 1.088 GB, free: 4.707 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 6.822e-05/1.748, allocations: 10.25 kB / 1.088 GB, free: 4.699 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000146/1.748, allocations: 13.17 kB / 1.088 GB, free: 4.688 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 9.131e-05/1.749, allocations: 21.05 kB / 1.088 GB, free: 4.676 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002191/1.749, allocations: 58.52 kB / 1.088 GB, free: 4.648 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002828/1.749, allocations: 38.05 kB / 1.088 GB, free: 4.633 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/1.749, allocations: 25.66 kB / 1.088 GB, free: 4.617 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/1.749, allocations: 38.98 kB / 1.089 GB, free: 4.59 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.771e-05/1.749, allocations: 6.156 kB / 1.089 GB, free: 4.59 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.563e-05/1.749, allocations: 6.125 kB / 1.089 GB, free: 4.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.814e-05/1.75, allocations: 20.88 kB / 1.089 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.602e-05/1.75, allocations: 32.39 kB / 1.089 GB, free: 4.551 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002518/1.75, allocations: 72.98 kB / 1.089 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.04e-05/1.75, allocations: 1.188 kB / 1.089 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.156e-06/1.75, allocations: 0 / 1.089 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.588e-06/1.75, allocations: 0 / 1.089 GB, free: 4.52 MB / 0.8575 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.0006495/1.751, allocations: 378.5 kB / 1.089 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 8.387e-05/1.751, allocations: 9.438 kB / 1.089 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.088e-05/1.751, allocations: 47.28 kB / 1.089 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.251e-05/1.751, allocations: 17.81 kB / 1.089 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003101/1.751, allocations: 188.3 kB / 1.089 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/1.751, allocations: 3.531 kB / 1.089 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.093e-05/1.751, allocations: 8.938 kB / 1.089 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/1.752, allocations: 93.23 kB / 1.089 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/1.752, allocations: 5.031 kB / 1.089 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/1.752, allocations: 5.156 kB / 1.089 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/1.752, allocations: 1.031 kB / 1.089 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001518/1.752, allocations: 40.22 kB / 1.089 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009056/1.753, allocations: 438.4 kB / 1.09 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 7.85e-05/1.753, allocations: 41.19 kB / 1.09 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.155e-05/1.753, allocations: 20.92 kB / 1.09 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.263e-05/1.753, allocations: 4.906 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/1.753, allocations: 36.39 kB / 1.09 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 2.595e-06/1.753, allocations: 0 / 1.09 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003249/1.753, allocations: 57.47 kB / 1.09 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/1.753, allocations: 77.72 kB / 1.09 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000266/1.754, allocations: 163.2 kB / 1.09 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/1.754, allocations: 25.7 kB / 1.09 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.219e-05/1.754, allocations: 104.2 kB / 1.09 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/1.754, allocations: 9.172 kB / 1.09 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.283e-05/1.754, allocations: 17.62 kB / 1.09 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001039/1.754, allocations: 324.4 kB / 1.091 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.15e-05/1.754, allocations: 3.922 kB / 1.091 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.852e-05/1.754, allocations: 20.52 kB / 1.091 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.84e-05/1.754, allocations: 30.59 kB / 1.091 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/1.754, allocations: 0 / 1.091 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001428/1.754, allocations: 58.69 kB / 1.091 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.188e-05/1.754, allocations: 9.125 kB / 1.091 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.557e-06/1.754, allocations: 1.031 kB / 1.091 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.456e-05/1.754, allocations: 0.6094 kB / 1.091 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/1.755, allocations: 10.88 kB / 1.091 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/1.755, allocations: 4.625 kB / 1.091 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.64e-05/1.755, allocations: 7.031 kB / 1.091 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-06/1.755, allocations: 0.9062 kB / 1.091 GB, free: 2.398 MB / 0.8575 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.0001266/1.755, allocations: 114 kB / 1.091 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.311e-05/1.755, allocations: 12.09 kB / 1.091 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.601e-05/1.755, allocations: 12.64 kB / 1.091 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/1.755, allocations: 1.719 kB / 1.091 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/1.755, allocations: 1.156 kB / 1.091 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/1.755, allocations: 8.078 kB / 1.091 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006622/1.756, allocations: 470.9 kB / 1.091 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/1.756, allocations: 1.094 kB / 1.091 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.528e-05/1.756, allocations: 3.562 kB / 1.091 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/1.756, allocations: 5 kB / 1.091 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/1.756, allocations: 1.156 kB / 1.091 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/1.756, allocations: 0.6094 kB / 1.091 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/1.756, allocations: 1.062 kB / 1.091 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001488/1.756, allocations: 89.03 kB / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.496e-05/1.756, allocations: 90.5 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.246e-05/1.756, allocations: 1.547 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.867e-05/1.756, allocations: 1.062 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.404e-05/1.756, allocations: 1.578 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/1.756, allocations: 1.359 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001492/1.756, allocations: 130.2 kB / 1.092 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.91e-07/1.756, allocations: 0 / 1.092 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003797/1.757, allocations: 7.125 kB / 1.092 GB, free: 1.477 MB / 0.8575 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.0006356/1.757, allocations: 0.6203 MB / 1.092 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001542/1.758, allocations: 15.39 kB / 1.092 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/1.758, allocations: 0 / 1.092 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 2.28e-05/1.758, allocations: 9.328 kB / 1.092 GB, free: 16.85 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/1.758, allocations: 15.31 kB / 1.092 GB, free: 16.84 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/1.76, allocations: 1.324 MB / 1.094 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005683/1.761, allocations: 0.6931 MB / 1.094 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 6.355e-05/1.761, allocations: 7.156 kB / 1.094 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.569e-05/1.761, allocations: 25.81 kB / 1.094 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of SimCode: time 8.11e-07/1.761, allocations: 0 / 1.094 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0347/1.796, allocations: 1.574 MB / 1.096 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.35/16.14, allocations: 8.844 kB / 1.096 GB, free: 14.51 MB / 0.8731 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