Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.From_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.From_ton,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_UnitConversions_Validation_From_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.007399/0.007399, allocations: 96.83 kB / 15.73 MB, free: 6.055 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.002094/0.002094, allocations: 197.2 kB / 16.68 MB, free: 5.977 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.486/1.486, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.856/2.856, allocations: 469.8 MB / 0.7425 GB, free: 7.332 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 63.91 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2869, allocations: 159.1 MB / 1.22 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.001999/0.2889, allocations: 0.8424 MB / 1.221 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0001118/0.289, allocations: 35.8 kB / 1.221 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.576e-05/0.2891, allocations: 0 / 1.221 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.824e-05/0.2891, allocations: 7.875 kB / 1.221 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.776e-05/0.2892, allocations: 11.92 kB / 1.221 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 5.025e-05/0.2893, allocations: 19.98 kB / 1.221 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001103/0.2894, allocations: 71.77 kB / 1.221 GB, free: 13.35 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.2895, allocations: 43.86 kB / 1.221 GB, free: 13.31 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.972e-05/0.2896, allocations: 31.8 kB / 1.221 GB, free: 13.28 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.271e-05/0.2896, allocations: 27.86 kB / 1.221 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.932e-05/0.2897, allocations: 8 kB / 1.221 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.648e-06/0.2897, allocations: 4 kB / 1.221 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.22e-05/0.2897, allocations: 15.92 kB / 1.221 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.311e-05/0.2898, allocations: 27.81 kB / 1.221 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001244/0.2899, allocations: 83.56 kB / 1.221 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2899, allocations: 3.938 kB / 1.221 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2899, allocations: 0 / 1.221 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.2899, allocations: 0 / 1.221 GB, free: 13.11 MB / 0.9825 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.0004725/0.2904, allocations: 379.2 kB / 1.222 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.2904, allocations: 8.031 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.416e-05/0.2905, allocations: 42.73 kB / 1.222 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.417e-05/0.2905, allocations: 12.84 kB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002168/0.2907, allocations: 192.2 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.2908, allocations: 8.359 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.67e-05/0.2908, allocations: 12.38 kB / 1.222 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001571/0.2909, allocations: 90.05 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.291, allocations: 7.938 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.291, allocations: 4 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.503e-06/0.291, allocations: 4 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.876e-05/0.2911, allocations: 35.92 kB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005447/0.2916, allocations: 436.7 kB / 1.223 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 6.119e-05/0.2917, allocations: 41.25 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.889e-05/0.2918, allocations: 21.77 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.908e-06/0.2918, allocations: 0 / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.417e-05/0.2918, allocations: 34.56 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 9.31e-07/0.2918, allocations: 0 / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001629/0.292, allocations: 53.78 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.308e-05/0.292, allocations: 85.09 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.2922, allocations: 159.6 kB / 1.223 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.2922, allocations: 25.7 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.807e-05/0.2923, allocations: 108.1 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.767e-06/0.2923, allocations: 3.953 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.928e-05/0.2924, allocations: 25.66 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001404/0.2925, allocations: 310.8 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.321e-05/0.2926, allocations: 15.98 kB / 1.223 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.481e-05/0.2926, allocations: 21.66 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.298e-05/0.2926, allocations: 25.72 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2926, allocations: 3.938 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.148e-05/0.2927, allocations: 65.52 kB / 1.224 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.2928, allocations: 7.938 kB / 1.224 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.2928, allocations: 4.062 kB / 1.224 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.2928, allocations: 4.094 kB / 1.224 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.544e-05/0.2929, allocations: 4 kB / 1.224 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.2929, allocations: 0 / 1.224 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.516e-05/0.2929, allocations: 15.92 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.777e-06/0.2929, allocations: 0 / 1.224 GB, free: 10.61 MB / 0.9825 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 9.162e-05/0.293, allocations: 113.8 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.762e-05/0.2931, allocations: 11.89 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.22e-05/0.2931, allocations: 11.86 kB / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.2931, allocations: 4 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2931, allocations: 0 / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.2931, allocations: 0 / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004337/0.2936, allocations: 474.7 kB / 1.224 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2936, allocations: 0 / 1.224 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.977e-05/0.2936, allocations: 7.938 kB / 1.224 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2936, allocations: 0 / 1.224 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.631e-06/0.2936, allocations: 8.062 kB / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2936, allocations: 0 / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.2936, allocations: 3.984 kB / 1.224 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.059e-05/0.2937, allocations: 77.89 kB / 1.224 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.706e-05/0.2938, allocations: 89.05 kB / 1.224 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.241e-05/0.2938, allocations: 0 / 1.224 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.972e-05/0.2938, allocations: 0 / 1.224 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.647e-05/0.2939, allocations: 8.031 kB / 1.224 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-06/0.2939, allocations: 0 / 1.224 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.75e-05/0.294, allocations: 121.1 kB / 1.224 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.294, allocations: 0 / 1.224 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002058/0.2942, allocations: 12 kB / 1.224 GB, free: 9.578 MB / 0.9825 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.0004436/0.2946, allocations: 0.6137 MB / 1.225 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 8.396e-05/0.2947, allocations: 19.94 kB / 1.225 GB, free: 8.914 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2947, allocations: 0 / 1.225 GB, free: 8.914 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.252e-05/0.2948, allocations: 8 kB / 1.225 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001531/0.2949, allocations: 11.98 kB / 1.225 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.2962, allocations: 1.334 MB / 1.226 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.2966, allocations: 0.6929 MB / 1.227 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.062e-05/0.2966, allocations: 12.36 kB / 1.227 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.791e-05/0.2967, allocations: 27.44 kB / 1.227 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.2967, allocations: 0 / 1.227 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02136/0.318, allocations: 1.575 MB / 1.229 GB, free: 5.227 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.587/7.905, allocations: 8.75 kB / 1.229 GB, free: 5.219 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_11_Buildings_Controls_OBC_UnitConversions_Validation_From_ton.fmu > Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches