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.008418/0.008418, allocations: 105.9 kB / 15.74 MB, free: 5.996 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.001874/0.001874, allocations: 197 kB / 16.67 MB, free: 5.918 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 15.09 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 2.213/2.213, allocations: 390.3 MB / 0.6648 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 67.88 kB / 0.9504 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9041/0.9056, allocations: 140.4 MB / 1.087 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001808/0.9074, allocations: 0.8208 MB / 1.088 GB, free: 4.758 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 9.893e-05/0.9075, allocations: 41.27 kB / 1.088 GB, free: 4.727 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.132e-05/0.9076, allocations: 1.844 kB / 1.088 GB, free: 4.727 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.588e-05/0.9076, allocations: 13.38 kB / 1.088 GB, free: 4.715 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.252e-05/0.9077, allocations: 10.66 kB / 1.088 GB, free: 4.707 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 5.137e-05/0.9078, allocations: 20.03 kB / 1.088 GB, free: 4.695 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001015/0.9079, allocations: 58.62 kB / 1.088 GB, free: 4.668 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.9081, allocations: 42.12 kB / 1.088 GB, free: 4.648 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.389e-05/0.9081, allocations: 26.64 kB / 1.088 GB, free: 4.633 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.989e-05/0.9082, allocations: 38.5 kB / 1.089 GB, free: 4.605 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.955e-05/0.9082, allocations: 6.688 kB / 1.089 GB, free: 4.605 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.071e-05/0.9082, allocations: 5.344 kB / 1.089 GB, free: 4.605 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.878e-05/0.9082, allocations: 12.25 kB / 1.089 GB, free: 4.598 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.406e-05/0.9083, allocations: 32.45 kB / 1.089 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.9084, allocations: 82.33 kB / 1.089 GB, free: 4.535 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.9084, allocations: 1 kB / 1.089 GB, free: 4.535 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.883e-06/0.9084, allocations: 0.5625 kB / 1.089 GB, free: 4.535 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.9084, allocations: 4 kB / 1.089 GB, free: 4.531 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.0003596/0.9088, allocations: 376.8 kB / 1.089 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.9088, allocations: 9.688 kB / 1.089 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.443e-05/0.9089, allocations: 38.75 kB / 1.089 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.929e-05/0.9089, allocations: 13.8 kB / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001772/0.9091, allocations: 192.9 kB / 1.089 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.9091, allocations: 8.453 kB / 1.089 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.611e-05/0.9091, allocations: 4.625 kB / 1.089 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.9093, allocations: 98.27 kB / 1.089 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.9094, allocations: 4.906 kB / 1.089 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.828e-06/0.9094, allocations: 5.094 kB / 1.089 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.9094, allocations: 2 kB / 1.089 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.532e-05/0.9095, allocations: 35.69 kB / 1.089 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004885/0.91, allocations: 437.5 kB / 1.09 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.978e-05/0.91, allocations: 46.08 kB / 1.09 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.655e-05/0.9101, allocations: 21.28 kB / 1.09 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.738e-06/0.9101, allocations: 0 / 1.09 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.913e-05/0.9101, allocations: 37.48 kB / 1.09 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 8.71e-07/0.9101, allocations: 0 / 1.09 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001694/0.9103, allocations: 56.95 kB / 1.09 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.9103, allocations: 77.72 kB / 1.09 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.9105, allocations: 159.5 kB / 1.09 GB, free: 3 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.025e-06/0.9105, allocations: 25.7 kB / 1.09 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.308e-05/0.9105, allocations: 103.3 kB / 1.09 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 9.197e-06/0.9106, allocations: 10.3 kB / 1.09 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.084e-05/0.9106, allocations: 17.81 kB / 1.09 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.941e-05/0.9107, allocations: 320.1 kB / 1.091 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.896e-05/0.9107, allocations: 7.891 kB / 1.091 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.204e-05/0.9107, allocations: 17.06 kB / 1.091 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.096e-05/0.9108, allocations: 30.61 kB / 1.091 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.9108, allocations: 0 / 1.091 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.844e-05/0.9109, allocations: 60.91 kB / 1.091 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.9109, allocations: 12.2 kB / 1.091 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.9109, allocations: 1.062 kB / 1.091 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.9109, allocations: 1.969 kB / 1.091 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.381e-05/0.911, allocations: 5.797 kB / 1.091 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.911, allocations: 1.031 kB / 1.091 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.922e-05/0.911, allocations: 14.09 kB / 1.091 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.911, allocations: 1.719 kB / 1.091 GB, free: 2.418 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 5.939e-05/0.9111, allocations: 118.8 kB / 1.091 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.126e-05/0.9111, allocations: 11.41 kB / 1.091 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.307e-05/0.9112, allocations: 12.48 kB / 1.091 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.9112, allocations: 1.031 kB / 1.091 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.9112, allocations: 1.469 kB / 1.091 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.9112, allocations: 4.703 kB / 1.091 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003213/0.9115, allocations: 475.5 kB / 1.091 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.9115, allocations: 4.062 kB / 1.091 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.043e-05/0.9116, allocations: 3.641 kB / 1.091 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.9116, allocations: 4.938 kB / 1.091 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.9116, allocations: 1.641 kB / 1.091 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.9116, allocations: 0 / 1.091 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.9116, allocations: 5.438 kB / 1.091 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.79e-05/0.9117, allocations: 80.89 kB / 1.092 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.053e-05/0.9117, allocations: 94.31 kB / 1.092 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.9117, allocations: 1.062 kB / 1.092 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.065e-05/0.9118, allocations: 1.922 kB / 1.092 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.909e-05/0.9118, allocations: 1.625 kB / 1.092 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.9118, allocations: 1.062 kB / 1.092 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.759e-05/0.9119, allocations: 122.2 kB / 1.092 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9119, allocations: 0 / 1.092 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001893/0.9121, allocations: 7.188 kB / 1.092 GB, free: 1.496 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.0003977/0.9125, allocations: 0.6191 MB / 1.092 GB, free: 16.88 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 9.691e-05/0.9126, allocations: 20.95 kB / 1.092 GB, free: 16.87 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.9126, allocations: 0 / 1.092 GB, free: 16.87 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 1.062e-05/0.9126, allocations: 7.656 kB / 1.092 GB, free: 16.87 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001592/0.9128, allocations: 11.61 kB / 1.092 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.9141, allocations: 1.326 MB / 1.094 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.9144, allocations: 0.6962 MB / 1.094 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.452e-05/0.9144, allocations: 7.188 kB / 1.094 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.713e-05/0.9145, allocations: 25.12 kB / 1.094 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of SimCode: time 2e-07/0.9145, allocations: 0 / 1.094 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01842/0.9329, allocations: 1.592 MB / 1.096 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.625/8.558, allocations: 11.28 kB / 1.096 GB, free: 14.52 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