Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_10_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.007722/0.007722, allocations: 97.2 kB / 15.73 MB, free: 5.547 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.002067/0.002068, allocations: 190.1 kB / 16.67 MB, free: 5.48 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.509/1.509, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.603/2.603, allocations: 437.1 MB / 0.7105 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 67.89 kB / 1.018 GB, free: 9.898 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6859/0.6878, allocations: 151.6 MB / 1.166 GB, free: 3.75 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002063/0.6899, allocations: 0.8311 MB / 1.167 GB, free: 2.918 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0001166/0.69, allocations: 39.78 kB / 1.167 GB, free: 2.879 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.102e-05/0.6901, allocations: 4 kB / 1.167 GB, free: 2.875 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.966e-05/0.6902, allocations: 7.875 kB / 1.167 GB, free: 2.867 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.538e-05/0.6902, allocations: 11.86 kB / 1.167 GB, free: 2.855 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 5.028e-05/0.6903, allocations: 19.98 kB / 1.167 GB, free: 2.836 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001149/0.6904, allocations: 63.84 kB / 1.167 GB, free: 2.773 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.6906, allocations: 35.98 kB / 1.167 GB, free: 2.738 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 6.15e-05/0.6906, allocations: 27.86 kB / 1.167 GB, free: 2.711 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.471e-05/0.6907, allocations: 35.78 kB / 1.167 GB, free: 2.676 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.091e-05/0.6907, allocations: 4 kB / 1.167 GB, free: 2.672 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.428e-05/0.6907, allocations: 8 kB / 1.167 GB, free: 2.664 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.397e-05/0.6908, allocations: 15.92 kB / 1.167 GB, free: 2.648 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.889e-05/0.6908, allocations: 31.81 kB / 1.167 GB, free: 2.617 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001254/0.6909, allocations: 79.28 kB / 1.167 GB, free: 2.543 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.691, allocations: 0 / 1.167 GB, free: 2.543 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.463e-06/0.691, allocations: 0 / 1.167 GB, free: 2.543 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.691, allocations: 0 / 1.167 GB, free: 2.543 MB / 0.8887 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.0004873/0.6915, allocations: 387.1 kB / 1.168 GB, free: 2.113 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.6915, allocations: 8.625 kB / 1.168 GB, free: 2.105 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.737e-05/0.6916, allocations: 50.61 kB / 1.168 GB, free: 2.047 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.751e-05/0.6916, allocations: 12.84 kB / 1.168 GB, free: 2.035 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.6918, allocations: 196.1 kB / 1.168 GB, free: 1.805 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.6919, allocations: 8.375 kB / 1.168 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.129e-05/0.6919, allocations: 4.375 kB / 1.168 GB, free: 1.793 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001702/0.692, allocations: 98.33 kB / 1.168 GB, free: 1.688 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.6921, allocations: 7.938 kB / 1.168 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.386e-06/0.6921, allocations: 0 / 1.168 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.6921, allocations: 4 kB / 1.168 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.223e-05/0.6922, allocations: 35.98 kB / 1.168 GB, free: 1.641 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006305/0.6928, allocations: 432.7 kB / 1.169 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 7.304e-05/0.6929, allocations: 49.27 kB / 1.169 GB, free: 1.098 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.966e-05/0.6929, allocations: 21.75 kB / 1.169 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 6.622e-06/0.693, allocations: 0 / 1.169 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.693, allocations: 30.56 kB / 1.169 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.693, allocations: 4 kB / 1.169 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.000172/0.6932, allocations: 53.78 kB / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.838e-05/0.6933, allocations: 85.09 kB / 1.169 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.6934, allocations: 157.7 kB / 1.169 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.6935, allocations: 25.7 kB / 1.169 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 7.721e-05/0.6935, allocations: 100.1 kB / 1.169 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.091e-05/0.6936, allocations: 11.94 kB / 1.169 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.327e-05/0.6936, allocations: 17.7 kB / 1.169 GB, free: 0.5391 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.6938, allocations: 318.8 kB / 1.169 GB, free: 224 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.917e-05/0.6938, allocations: 11.98 kB / 1.169 GB, free: 212 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.554e-05/0.6938, allocations: 17.72 kB / 1.169 GB, free: 188 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.068e-05/0.6939, allocations: 25.66 kB / 1.169 GB, free: 156 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.6939, allocations: 0 / 1.169 GB, free: 156 kB / 0.8887 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.394e-05/0.694, allocations: 65.59 kB / 1.169 GB, free: 84 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.694, allocations: 7.938 kB / 1.169 GB, free: 76 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.694, allocations: 4.062 kB / 1.17 GB, free: 72 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.694, allocations: 3.938 kB / 1.17 GB, free: 68 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.787e-05/0.6941, allocations: 11.94 kB / 1.17 GB, free: 56 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.419e-06/0.6941, allocations: 0 / 1.17 GB, free: 56 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.339e-05/0.6941, allocations: 11.88 kB / 1.17 GB, free: 44 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.917e-06/0.6941, allocations: 0 / 1.17 GB, free: 44 kB / 0.8887 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.0001076/0.6943, allocations: 113.8 kB / 1.17 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.864e-05/0.6943, allocations: 11.89 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.9e-05/0.6943, allocations: 15.86 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.6944, allocations: 4 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.6944, allocations: 0 / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.6944, allocations: 0 / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004459/0.6948, allocations: 470.7 kB / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.6948, allocations: 0 / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.711e-05/0.6949, allocations: 8 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.6949, allocations: 0 / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.6949, allocations: 8.062 kB / 1.17 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.511e-06/0.6949, allocations: 7.984 kB / 1.17 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.6949, allocations: 0 / 1.17 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.462e-05/0.695, allocations: 77.83 kB / 1.17 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.848e-05/0.6951, allocations: 89.14 kB / 1.17 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.6951, allocations: 3.984 kB / 1.17 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.316e-05/0.6951, allocations: 4 kB / 1.17 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.057e-05/0.6952, allocations: 4.031 kB / 1.17 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.6952, allocations: 4 kB / 1.17 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001149/0.6953, allocations: 122.1 kB / 1.17 GB, free: 15 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6953, allocations: 0 / 1.17 GB, free: 15 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0001937/0.6955, allocations: 4 kB / 1.17 GB, free: 15 MB / 0.9044 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.0005278/0.696, allocations: 0.621 MB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 9.994e-05/0.6961, allocations: 16 kB / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.6961, allocations: 0 / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.52e-05/0.6962, allocations: 11.92 kB / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001546/0.6963, allocations: 8 kB / 1.171 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.6976, allocations: 1.336 MB / 1.172 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.698, allocations: 0.6885 MB / 1.173 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.241e-05/0.698, allocations: 12.36 kB / 1.173 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.8e-05/0.6981, allocations: 19.44 kB / 1.173 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of SimCode: time 2.7e-07/0.6981, allocations: 7.938 kB / 1.173 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02269/0.7208, allocations: 1.589 MB / 1.175 GB, free: 10.63 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.833/8.554, allocations: 4.844 kB / 1.175 GB, free: 10.62 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches