Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_quad.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_quad,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_quad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_quad,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_quad",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.005218/0.005218, allocations: 95.02 kB / 15.73 MB, free: 6.484 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.001357/0.001357, allocations: 194.2 kB / 16.67 MB, free: 6.391 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.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.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.347/2.347, allocations: 390.2 MB / 0.6648 GB, free: 248 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 59.84 kB / 0.9504 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2277/0.2291, allocations: 140.4 MB / 1.087 GB, free: 2.012 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_quad): time 0.001817/0.231, allocations: 0.828 MB / 1.088 GB, free: 1.184 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.000113/0.2311, allocations: 47.8 kB / 1.088 GB, free: 1.137 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.965e-05/0.2312, allocations: 0 / 1.088 GB, free: 1.137 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.693e-05/0.2312, allocations: 7.875 kB / 1.088 GB, free: 1.129 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.95e-05/0.2313, allocations: 7.875 kB / 1.088 GB, free: 1.121 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 4.87e-05/0.2313, allocations: 27.97 kB / 1.088 GB, free: 1.094 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.254e-05/0.2314, allocations: 63.83 kB / 1.088 GB, free: 1.031 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.2316, allocations: 35.97 kB / 1.088 GB, free: 0.9961 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 6.873e-05/0.2317, allocations: 35.8 kB / 1.089 GB, free: 0.9609 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.532e-05/0.2317, allocations: 23.86 kB / 1.089 GB, free: 0.9375 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.772e-05/0.2317, allocations: 8 kB / 1.089 GB, free: 0.9297 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.426e-06/0.2317, allocations: 4 kB / 1.089 GB, free: 0.9258 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.155e-05/0.2318, allocations: 19.92 kB / 1.089 GB, free: 0.9062 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.991e-05/0.2318, allocations: 35.75 kB / 1.089 GB, free: 0.8711 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.2319, allocations: 79.78 kB / 1.089 GB, free: 0.793 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2319, allocations: 0 / 1.089 GB, free: 0.793 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2319, allocations: 0 / 1.089 GB, free: 0.793 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.588e-06/0.232, allocations: 0 / 1.089 GB, free: 0.793 MB / 0.8419 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.0003751/0.2323, allocations: 387.1 kB / 1.089 GB, free: 372 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.2324, allocations: 12.03 kB / 1.089 GB, free: 360 kB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.57e-05/0.2324, allocations: 38.73 kB / 1.089 GB, free: 312 kB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.8e-05/0.2325, allocations: 8.891 kB / 1.089 GB, free: 304 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001746/0.2326, allocations: 188.3 kB / 1.089 GB, free: 76 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.2327, allocations: 4.375 kB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.446e-05/0.2327, allocations: 12.31 kB / 1.089 GB, free: 60 kB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001609/0.2328, allocations: 97.73 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.2329, allocations: 3.938 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.128e-06/0.2329, allocations: 4 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.2329, allocations: 3.938 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.897e-05/0.233, allocations: 39.92 kB / 1.089 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004779/0.2335, allocations: 432.7 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 5.134e-05/0.2335, allocations: 45.19 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.506e-05/0.2336, allocations: 21.83 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 6.082e-06/0.2336, allocations: 0 / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.2336, allocations: 34.56 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.2336, allocations: 0 / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001603/0.2338, allocations: 57.53 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.806e-05/0.2338, allocations: 81.11 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001347/0.234, allocations: 159.7 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.092e-05/0.234, allocations: 25.7 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.729e-05/0.234, allocations: 108 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.897e-06/0.2341, allocations: 7.891 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.265e-05/0.2341, allocations: 17.72 kB / 1.09 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.338e-05/0.2342, allocations: 327.1 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.476e-05/0.2342, allocations: 0 / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.521e-05/0.2342, allocations: 29.64 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.773e-05/0.2343, allocations: 21.72 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.2343, allocations: 4 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.604e-05/0.2344, allocations: 57.59 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.2344, allocations: 19.98 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.2344, allocations: 0 / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.2344, allocations: 0 / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.007e-05/0.2345, allocations: 4 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.2345, allocations: 4 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.22e-05/0.2345, allocations: 3.953 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-06/0.2346, allocations: 4 kB / 1.091 GB, free: 14.3 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 0.0001098/0.2347, allocations: 109.8 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.966e-05/0.2347, allocations: 11.89 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.701e-05/0.2348, allocations: 19.86 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.2348, allocations: 96 / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.2348, allocations: 7.984 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.2348, allocations: 0 / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003585/0.2352, allocations: 466.8 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2352, allocations: 0 / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.262e-05/0.2352, allocations: 4 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.2352, allocations: 4.062 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.2352, allocations: 0 / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.2352, allocations: 3.938 kB / 1.091 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2352, allocations: 3.938 kB / 1.091 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.885e-05/0.2353, allocations: 81.88 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.913e-05/0.2354, allocations: 89.05 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/0.2354, allocations: 4 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.244e-05/0.2354, allocations: 4.031 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.132e-05/0.2354, allocations: 4 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.2354, allocations: 0 / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.583e-05/0.2355, allocations: 120.9 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2355, allocations: 3.938 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002039/0.2358, allocations: 15.89 kB / 1.092 GB, free: 13.25 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.0003373/0.2361, allocations: 0.621 MB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 8.692e-05/0.2362, allocations: 15.94 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2362, allocations: 0 / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.13e-05/0.2362, allocations: 4 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001573/0.2364, allocations: 8.281 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/0.2375, allocations: 1.334 MB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.2377, allocations: 0.7006 MB / 1.094 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.19e-05/0.2378, allocations: 4.438 kB / 1.094 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.344e-05/0.2378, allocations: 27.42 kB / 1.094 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.2378, allocations: 0 / 1.094 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01641/0.2542, allocations: 1.572 MB / 1.096 GB, free: 8.906 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.045/7.299, allocations: 7.984 kB / 1.096 GB, free: 8.898 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_quad.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_quad.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_quad.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_quad.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_quad_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_quad.fmu > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_quad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_quad_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_UnitConversions_Validation_To_quad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_quad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches