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.007398/0.007398, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001835/0.001835, allocations: 196.7 kB / 16.68 MB, free: 5.93 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.218/2.218, allocations: 390.3 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 63.91 kB / 0.9504 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6769/0.6782, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.00174/0.68, allocations: 0.8216 MB / 1.088 GB, free: 4.75 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 9.578e-05/0.6801, allocations: 49.14 kB / 1.088 GB, free: 4.711 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.772e-05/0.6801, allocations: 2.125 kB / 1.088 GB, free: 4.711 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.541e-05/0.6802, allocations: 9.656 kB / 1.088 GB, free: 4.703 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.752e-05/0.6802, allocations: 14.03 kB / 1.088 GB, free: 4.691 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 4.321e-05/0.6803, allocations: 19.97 kB / 1.088 GB, free: 4.68 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.509e-05/0.6804, allocations: 58.48 kB / 1.088 GB, free: 4.652 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.6805, allocations: 42.61 kB / 1.088 GB, free: 4.633 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.117e-05/0.6806, allocations: 26.08 kB / 1.088 GB, free: 4.617 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.651e-05/0.6806, allocations: 29.3 kB / 1.089 GB, free: 4.598 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.903e-05/0.6807, allocations: 6.656 kB / 1.089 GB, free: 4.598 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.031e-05/0.6807, allocations: 6.375 kB / 1.089 GB, free: 4.598 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.906e-05/0.6807, allocations: 16.11 kB / 1.089 GB, free: 4.586 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.064e-05/0.6807, allocations: 36.48 kB / 1.089 GB, free: 4.559 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.6808, allocations: 77.78 kB / 1.089 GB, free: 4.523 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.6809, allocations: 0 / 1.089 GB, free: 4.523 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.362e-06/0.6809, allocations: 1.062 kB / 1.089 GB, free: 4.523 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.469e-06/0.6809, allocations: 0 / 1.089 GB, free: 4.523 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.0003077/0.6812, allocations: 376.8 kB / 1.089 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.6812, allocations: 9.375 kB / 1.089 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.964e-05/0.6813, allocations: 42.8 kB / 1.089 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.594e-05/0.6813, allocations: 14.55 kB / 1.089 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001358/0.6814, allocations: 192.2 kB / 1.089 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.829e-06/0.6814, allocations: 6.844 kB / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.317e-05/0.6815, allocations: 10.39 kB / 1.089 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.6816, allocations: 93.25 kB / 1.089 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.6816, allocations: 7.875 kB / 1.089 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.325e-06/0.6816, allocations: 0.8438 kB / 1.089 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.6816, allocations: 2.156 kB / 1.089 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.382e-05/0.6817, allocations: 36.42 kB / 1.089 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004053/0.6821, allocations: 442.5 kB / 1.09 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 3.916e-05/0.6822, allocations: 45.22 kB / 1.09 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.96e-05/0.6822, allocations: 16.59 kB / 1.09 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 6.422e-06/0.6822, allocations: 0 / 1.09 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.614e-05/0.6823, allocations: 45.31 kB / 1.09 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.253e-06/0.6823, allocations: 3.984 kB / 1.09 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001446/0.6824, allocations: 52.33 kB / 1.09 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.5e-05/0.6824, allocations: 82.59 kB / 1.09 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.6826, allocations: 161.8 kB / 1.09 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.141e-06/0.6826, allocations: 26.36 kB / 1.09 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.914e-05/0.6826, allocations: 108 kB / 1.09 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.254e-06/0.6826, allocations: 6.172 kB / 1.09 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.779e-05/0.6827, allocations: 17.97 kB / 1.09 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.049e-05/0.6827, allocations: 323.9 kB / 1.091 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.628e-05/0.6827, allocations: 3.547 kB / 1.091 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.901e-05/0.6828, allocations: 21.08 kB / 1.091 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.486e-05/0.6828, allocations: 26.91 kB / 1.091 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.6828, allocations: 0 / 1.091 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.315e-05/0.6829, allocations: 62.09 kB / 1.091 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.6829, allocations: 9.406 kB / 1.091 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.6829, allocations: 0 / 1.091 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.6829, allocations: 0.9062 kB / 1.091 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.667e-05/0.683, allocations: 6.594 kB / 1.091 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.683, allocations: 1.188 kB / 1.091 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.024e-05/0.683, allocations: 7.234 kB / 1.091 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.509e-06/0.683, allocations: 8.812 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 4.61e-05/0.6831, allocations: 114.6 kB / 1.091 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.218e-05/0.6831, allocations: 12.59 kB / 1.091 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.043e-05/0.6832, allocations: 11.31 kB / 1.091 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.6832, allocations: 1.703 kB / 1.091 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.6832, allocations: 4.844 kB / 1.091 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.6832, allocations: 1.094 kB / 1.091 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002649/0.6834, allocations: 470.5 kB / 1.091 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.6835, allocations: 0 / 1.091 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.985e-05/0.6835, allocations: 4.391 kB / 1.091 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.6835, allocations: 5.453 kB / 1.091 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.54e-06/0.6835, allocations: 1.031 kB / 1.091 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.6835, allocations: 0 / 1.091 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.6835, allocations: 1.516 kB / 1.091 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.923e-05/0.6836, allocations: 88.39 kB / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.035e-05/0.6836, allocations: 90.44 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.6836, allocations: 1.828 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.165e-05/0.6837, allocations: 1.062 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.008e-05/0.6837, allocations: 1.859 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.6837, allocations: 1.062 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.887e-05/0.6837, allocations: 122.2 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.6838, allocations: 5.406 kB / 1.092 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001928/0.684, allocations: 6.594 kB / 1.092 GB, free: 1.48 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.0002974/0.6843, allocations: 0.6114 MB / 1.092 GB, free: 16.87 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 8.084e-05/0.6843, allocations: 24.72 kB / 1.092 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.6844, allocations: 0 / 1.092 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 1.03e-05/0.6844, allocations: 4.281 kB / 1.092 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001655/0.6845, allocations: 15.08 kB / 1.092 GB, free: 16.85 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001023/0.6856, allocations: 1.327 MB / 1.094 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002175/0.6858, allocations: 0.696 MB / 1.094 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.19e-05/0.6858, allocations: 7.812 kB / 1.094 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.858e-05/0.6859, allocations: 21.19 kB / 1.094 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of SimCode: time 3.41e-07/0.6859, allocations: 0 / 1.094 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01655/0.7024, allocations: 1.576 MB / 1.096 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.146/7.848, allocations: 8.297 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 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.csv","/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