Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_Btu,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_Btu",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_Btu,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_Btu",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.00419/0.00419, allocations: 101.9 kB / 15.74 MB, free: 6.031 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.001234/0.001234, allocations: 194.8 kB / 16.67 MB, free: 5.961 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.943/2.943, allocations: 482.4 MB / 0.7548 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 67.89 kB / 1.083 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2816, allocations: 162.2 MB / 1.241 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_Btu): time 0.002013/0.2836, allocations: 0.8332 MB / 1.242 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0001154/0.2838, allocations: 35.84 kB / 1.242 GB, free: 9.336 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.869e-05/0.2838, allocations: 3.938 kB / 1.242 GB, free: 9.332 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.312e-05/0.2839, allocations: 3.938 kB / 1.242 GB, free: 9.328 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.363e-05/0.284, allocations: 11.88 kB / 1.242 GB, free: 9.316 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 4.621e-05/0.284, allocations: 15.98 kB / 1.242 GB, free: 9.301 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001143/0.2841, allocations: 67.83 kB / 1.242 GB, free: 9.234 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.2843, allocations: 39.91 kB / 1.242 GB, free: 9.195 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.979e-05/0.2843, allocations: 27.86 kB / 1.242 GB, free: 9.168 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.979e-05/0.2844, allocations: 27.84 kB / 1.243 GB, free: 9.141 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.786e-05/0.2844, allocations: 12 kB / 1.243 GB, free: 9.129 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.351e-05/0.2844, allocations: 4 kB / 1.243 GB, free: 9.125 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.401e-05/0.2845, allocations: 19.92 kB / 1.243 GB, free: 9.105 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.189e-05/0.2845, allocations: 35.75 kB / 1.243 GB, free: 9.07 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001244/0.2846, allocations: 71.58 kB / 1.243 GB, free: 9 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.2847, allocations: 7.984 kB / 1.243 GB, free: 8.992 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2847, allocations: 0 / 1.243 GB, free: 8.992 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.997e-06/0.2847, allocations: 0 / 1.243 GB, free: 8.992 MB / 0.9981 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.0004429/0.2851, allocations: 383 kB / 1.243 GB, free: 8.566 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.2852, allocations: 16.03 kB / 1.243 GB, free: 8.551 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.072e-05/0.2852, allocations: 38.73 kB / 1.243 GB, free: 8.504 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.665e-05/0.2853, allocations: 12.84 kB / 1.243 GB, free: 8.492 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.2855, allocations: 192.2 kB / 1.243 GB, free: 8.266 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.34e-05/0.2855, allocations: 8.375 kB / 1.243 GB, free: 8.258 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.2855, allocations: 4.375 kB / 1.243 GB, free: 8.254 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001593/0.2857, allocations: 89.67 kB / 1.243 GB, free: 8.156 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.2857, allocations: 7.922 kB / 1.243 GB, free: 8.148 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.2857, allocations: 8 kB / 1.243 GB, free: 8.141 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.2857, allocations: 0 / 1.243 GB, free: 8.141 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.992e-05/0.2858, allocations: 39.92 kB / 1.243 GB, free: 8.102 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005443/0.2864, allocations: 428.8 kB / 1.244 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 6.815e-05/0.2864, allocations: 41.19 kB / 1.244 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.737e-05/0.2865, allocations: 25.84 kB / 1.244 GB, free: 7.539 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.378e-06/0.2865, allocations: 0 / 1.244 GB, free: 7.539 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/0.2865, allocations: 34.55 kB / 1.244 GB, free: 7.496 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.2865, allocations: 0 / 1.244 GB, free: 7.496 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0001626/0.2867, allocations: 53.53 kB / 1.244 GB, free: 7.438 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/0.2868, allocations: 85.36 kB / 1.244 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001586/0.2869, allocations: 164.6 kB / 1.244 GB, free: 7.168 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.287, allocations: 25.7 kB / 1.244 GB, free: 7.137 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.026e-05/0.287, allocations: 100.1 kB / 1.244 GB, free: 7.035 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.092e-05/0.2871, allocations: 15.88 kB / 1.244 GB, free: 7.02 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.426e-05/0.2871, allocations: 13.72 kB / 1.244 GB, free: 7 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.2872, allocations: 322.8 kB / 1.245 GB, free: 6.676 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.412e-05/0.2873, allocations: 4 kB / 1.245 GB, free: 6.672 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.772e-05/0.2873, allocations: 29.64 kB / 1.245 GB, free: 6.637 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.451e-05/0.2874, allocations: 25.72 kB / 1.245 GB, free: 6.605 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2874, allocations: 0 / 1.245 GB, free: 6.605 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.976e-05/0.2875, allocations: 57.55 kB / 1.245 GB, free: 6.543 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.2875, allocations: 11.94 kB / 1.245 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.2875, allocations: 0 / 1.245 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.2875, allocations: 4.062 kB / 1.245 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.583e-05/0.2876, allocations: 7.984 kB / 1.245 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.2876, allocations: 4 kB / 1.245 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.159e-05/0.2876, allocations: 4.031 kB / 1.245 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-06/0.2876, allocations: 8 kB / 1.245 GB, free: 6.504 MB / 0.9981 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 8.515e-05/0.2877, allocations: 110.4 kB / 1.245 GB, free: 6.387 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.901e-05/0.2878, allocations: 15.88 kB / 1.245 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.643e-05/0.2878, allocations: 19.8 kB / 1.245 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.2878, allocations: 0 / 1.245 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.2878, allocations: 8 kB / 1.245 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.2878, allocations: 0 / 1.245 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000447/0.2883, allocations: 474.7 kB / 1.245 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2883, allocations: 0 / 1.245 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.278e-05/0.2883, allocations: 4 kB / 1.245 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.2883, allocations: 3.938 kB / 1.245 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.139e-06/0.2883, allocations: 0 / 1.245 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2883, allocations: 4.062 kB / 1.245 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2883, allocations: 0 / 1.245 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.617e-05/0.2884, allocations: 77.88 kB / 1.246 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.818e-05/0.2885, allocations: 89.06 kB / 1.246 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.591e-05/0.2885, allocations: 7.984 kB / 1.246 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.071e-05/0.2886, allocations: 0 / 1.246 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.686e-06/0.2886, allocations: 4.031 kB / 1.246 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.2886, allocations: 0 / 1.246 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001064/0.2887, allocations: 121.7 kB / 1.246 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.014e-06/0.2887, allocations: 0 / 1.246 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000196/0.2889, allocations: 11.94 kB / 1.246 GB, free: 5.457 MB / 0.9981 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.0004233/0.2893, allocations: 0.621 MB / 1.246 GB, free: 4.805 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 7.869e-05/0.2894, allocations: 15.94 kB / 1.246 GB, free: 4.789 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2894, allocations: 0 / 1.246 GB, free: 4.789 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.121e-05/0.2894, allocations: 4 kB / 1.246 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001595/0.2896, allocations: 10.06 kB / 1.246 GB, free: 4.777 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/0.2909, allocations: 1.339 MB / 1.248 GB, free: 3.34 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.2912, allocations: 0.6963 MB / 1.248 GB, free: 2.617 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.82e-05/0.2913, allocations: 4.438 kB / 1.248 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.834e-05/0.2913, allocations: 27.42 kB / 1.248 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of SimCode: time 3.7e-07/0.2913, allocations: 4 kB / 1.248 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0218/0.3131, allocations: 1.571 MB / 1.25 GB, free: 1.113 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.647/7.96, allocations: 13.06 kB / 1.25 GB, free: 1.105 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_Btu.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_From_Btu.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches