Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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_quad,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_quad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_quad,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_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.005521/0.005521, allocations: 102.2 kB / 15.73 MB, free: 5.516 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.001355/0.001356, allocations: 203.3 kB / 16.68 MB, free: 5.445 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.347/1.347, allocations: 222.9 MB / 240.4 MB, free: 4.129 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.733/2.733, allocations: 469.4 MB / 0.7422 GB, free: 7.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 71.89 kB / 1.064 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2696, allocations: 159.1 MB / 1.22 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_quad): time 0.001835/0.2714, allocations: 0.8217 MB / 1.221 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0001255/0.2716, allocations: 43.78 kB / 1.221 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.966e-05/0.2717, allocations: 0 / 1.221 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.771e-05/0.2717, allocations: 11.88 kB / 1.221 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.145e-05/0.2718, allocations: 11.92 kB / 1.221 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 4.498e-05/0.2718, allocations: 19.98 kB / 1.221 GB, free: 13.71 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.692e-05/0.2719, allocations: 59.78 kB / 1.221 GB, free: 13.65 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.2721, allocations: 55.83 kB / 1.221 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.838e-05/0.2721, allocations: 27.86 kB / 1.221 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.204e-05/0.2722, allocations: 23.86 kB / 1.221 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.668e-05/0.2722, allocations: 8 kB / 1.221 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.355e-06/0.2722, allocations: 4 kB / 1.221 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.18e-05/0.2723, allocations: 19.92 kB / 1.221 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.908e-05/0.2723, allocations: 35.75 kB / 1.221 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001158/0.2724, allocations: 75.56 kB / 1.221 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2724, allocations: 0 / 1.221 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.012e-06/0.2724, allocations: 0 / 1.221 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.2725, allocations: 0 / 1.221 GB, free: 13.4 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.0003774/0.2728, allocations: 383.2 kB / 1.221 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.2729, allocations: 12.03 kB / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.421e-05/0.2729, allocations: 38.73 kB / 1.221 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.719e-05/0.2729, allocations: 12.84 kB / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001785/0.2731, allocations: 192.2 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.2732, allocations: 8.359 kB / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.391e-05/0.2732, allocations: 8.375 kB / 1.222 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001405/0.2733, allocations: 97.89 kB / 1.222 GB, free: 12.56 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.2733, allocations: 3.938 kB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.2733, allocations: 4 kB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.2734, allocations: 0 / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.844e-05/0.2734, allocations: 43.92 kB / 1.222 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004828/0.2739, allocations: 432.6 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.833e-05/0.274, allocations: 45.28 kB / 1.222 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.525e-05/0.274, allocations: 21.83 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 6.282e-06/0.274, allocations: 0 / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.2741, allocations: 34.56 kB / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.2741, allocations: 0 / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001634/0.2742, allocations: 61.53 kB / 1.222 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.2743, allocations: 81.09 kB / 1.222 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.2744, allocations: 162.1 kB / 1.223 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.091e-05/0.2745, allocations: 29.64 kB / 1.223 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.25e-05/0.2745, allocations: 100.1 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.625e-06/0.2745, allocations: 3.953 kB / 1.223 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.4e-05/0.2746, allocations: 25.66 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.71e-05/0.2747, allocations: 327 kB / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.65e-05/0.2747, allocations: 3.984 kB / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.314e-05/0.2747, allocations: 21.72 kB / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.851e-05/0.2748, allocations: 25.72 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.2748, allocations: 0 / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.487e-05/0.2749, allocations: 61.61 kB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.2749, allocations: 11.94 kB / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-06/0.2749, allocations: 0 / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.2749, allocations: 0 / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.558e-05/0.275, allocations: 4 kB / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.275, allocations: 4 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.993e-05/0.275, allocations: 3.938 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.275, allocations: 4 kB / 1.223 GB, free: 10.91 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 7.141e-05/0.2751, allocations: 114.3 kB / 1.223 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.524e-05/0.2751, allocations: 15.92 kB / 1.223 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.42e-05/0.2752, allocations: 15.86 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2752, allocations: 0 / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.2752, allocations: 4 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-06/0.2752, allocations: 0 / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003546/0.2756, allocations: 474.7 kB / 1.224 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2756, allocations: 0 / 1.224 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.103e-05/0.2756, allocations: 4 kB / 1.224 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.2756, allocations: 4.062 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.819e-06/0.2756, allocations: 0 / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2756, allocations: 0 / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.2756, allocations: 3.984 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.436e-05/0.2757, allocations: 73.89 kB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.266e-05/0.2758, allocations: 89.14 kB / 1.224 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.523e-05/0.2758, allocations: 16.02 kB / 1.224 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.225e-05/0.2758, allocations: 0 / 1.224 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.127e-06/0.2758, allocations: 3.938 kB / 1.224 GB, free: 9.992 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-06/0.2758, allocations: 4 kB / 1.224 GB, free: 9.988 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.065e-05/0.2759, allocations: 122.1 kB / 1.224 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2759, allocations: 0 / 1.224 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001914/0.2761, allocations: 8 kB / 1.224 GB, free: 9.863 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.0003176/0.2764, allocations: 0.6171 MB / 1.225 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 7.291e-05/0.2765, allocations: 23.81 kB / 1.225 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2765, allocations: 0 / 1.225 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.038e-05/0.2766, allocations: 4 kB / 1.225 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001507/0.2767, allocations: 12.27 kB / 1.225 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.2778, allocations: 1.334 MB / 1.226 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002085/0.278, allocations: 0.6924 MB / 1.227 GB, free: 7.023 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.22e-05/0.278, allocations: 12.42 kB / 1.227 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.275e-05/0.2781, allocations: 23.44 kB / 1.227 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.2781, allocations: 0 / 1.227 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.015/0.2931, allocations: 1.585 MB / 1.228 GB, free: 5.516 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.023/7.316, allocations: 7.938 kB / 1.228 GB, free: 5.508 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_quad.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_quad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_quad.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_quad.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_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_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_quad.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_quad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_quad_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_From_quad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_quad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches