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.001682/0.001682, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002015/0.002015, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.365/1.365, allocations: 222.9 MB / 240.2 MB, free: 4.379 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.339/2.339, allocations: 390.2 MB / 0.6647 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 75.86 kB / 0.8127 GB, free: 14.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5567/0.558, allocations: 140.4 MB / 0.9497 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_quad): time 0.001759/0.5598, allocations: 0.8094 MB / 0.9505 GB, free: 8.559 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 9.207e-05/0.5599, allocations: 54.09 kB / 0.9506 GB, free: 8.512 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.464e-05/0.56, allocations: 1.188 kB / 0.9506 GB, free: 8.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.269e-05/0.56, allocations: 11.86 kB / 0.9506 GB, free: 8.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.907e-05/0.5601, allocations: 5.156 kB / 0.9506 GB, free: 8.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 4e-05/0.5602, allocations: 15.36 kB / 0.9506 GB, free: 8.484 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.125e-05/0.5602, allocations: 63.75 kB / 0.9507 GB, free: 8.445 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001217/0.5604, allocations: 48.05 kB / 0.9507 GB, free: 8.414 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.618e-05/0.5604, allocations: 28.3 kB / 0.9507 GB, free: 8.395 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.093e-05/0.5605, allocations: 29.14 kB / 0.9508 GB, free: 8.371 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.634e-05/0.5605, allocations: 5.5 kB / 0.9508 GB, free: 8.371 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.041e-05/0.5605, allocations: 6.969 kB / 0.9508 GB, free: 8.371 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.577e-05/0.5605, allocations: 17.33 kB / 0.9508 GB, free: 8.355 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.867e-05/0.5606, allocations: 26.81 kB / 0.9508 GB, free: 8.336 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.758e-05/0.5606, allocations: 82.59 kB / 0.9509 GB, free: 8.27 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.5606, allocations: 0 / 0.9509 GB, free: 8.27 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.533e-06/0.5607, allocations: 1.156 kB / 0.9509 GB, free: 8.27 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.5607, allocations: 0 / 0.9509 GB, free: 8.27 MB / 0.7169 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.0002856/0.561, allocations: 382.2 kB / 0.9513 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.561, allocations: 9.375 kB / 0.9513 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.432e-05/0.561, allocations: 41.55 kB / 0.9513 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.45e-05/0.5611, allocations: 10.72 kB / 0.9513 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.5612, allocations: 190 kB / 0.9515 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.227e-06/0.5612, allocations: 7.031 kB / 0.9515 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.344e-05/0.5612, allocations: 9.656 kB / 0.9515 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001193/0.5613, allocations: 94.53 kB / 0.9516 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.5614, allocations: 5.469 kB / 0.9516 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.318e-06/0.5614, allocations: 4 kB / 0.9516 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.5614, allocations: 2.844 kB / 0.9516 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.719e-05/0.5615, allocations: 34.45 kB / 0.9517 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003674/0.5618, allocations: 441.8 kB / 0.9521 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.836e-05/0.5619, allocations: 32.59 kB / 0.9521 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.066e-05/0.5619, allocations: 36.34 kB / 0.9521 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.777e-06/0.5619, allocations: 0 / 0.9521 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.45e-05/0.562, allocations: 31.75 kB / 0.9522 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 8.32e-07/0.562, allocations: 0 / 0.9522 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001417/0.5621, allocations: 59.73 kB / 0.9522 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.023e-05/0.5621, allocations: 77.11 kB / 0.9523 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.5622, allocations: 167.8 kB / 0.9525 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.191e-06/0.5623, allocations: 26.92 kB / 0.9525 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.763e-05/0.5623, allocations: 111.8 kB / 0.9526 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.562e-06/0.5623, allocations: 5.219 kB / 0.9526 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-05/0.5623, allocations: 21.64 kB / 0.9526 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.514e-05/0.5624, allocations: 321.2 kB / 0.9529 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.498e-05/0.5624, allocations: 2.562 kB / 0.9529 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.728e-05/0.5624, allocations: 23.58 kB / 0.9529 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.241e-05/0.5625, allocations: 34.31 kB / 0.953 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.5625, allocations: 0 / 0.953 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.207e-05/0.5625, allocations: 63.31 kB / 0.953 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.5626, allocations: 13.16 kB / 0.9531 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.5626, allocations: 0 / 0.9531 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.5626, allocations: 1.188 kB / 0.9531 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.48e-05/0.5626, allocations: 5.031 kB / 0.9531 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.5627, allocations: 4.938 kB / 0.9531 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.869e-05/0.5627, allocations: 2.875 kB / 0.9531 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.787e-06/0.5627, allocations: 1.562 kB / 0.9531 GB, free: 6.043 MB / 0.7169 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 4.171e-05/0.5627, allocations: 113.1 kB / 0.9532 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.282e-05/0.5628, allocations: 11.09 kB / 0.9532 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.912e-05/0.5628, allocations: 16.42 kB / 0.9532 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.5628, allocations: 0 / 0.9532 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.5628, allocations: 0 / 0.9532 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-06/0.5628, allocations: 1.688 kB / 0.9532 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002492/0.5631, allocations: 474.3 kB / 0.9537 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.5631, allocations: 0 / 0.9537 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.854e-05/0.5631, allocations: 3.156 kB / 0.9537 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.5631, allocations: 1.625 kB / 0.9537 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.649e-06/0.5631, allocations: 0 / 0.9537 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.5631, allocations: 0.8438 kB / 0.9537 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.5631, allocations: 1.594 kB / 0.9537 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.555e-05/0.5632, allocations: 88.83 kB / 0.9537 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.775e-05/0.5632, allocations: 93.12 kB / 0.9538 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.5633, allocations: 1.75 kB / 0.9538 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.086e-05/0.5633, allocations: 0 / 0.9538 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.428e-06/0.5633, allocations: 5.594 kB / 0.9538 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-06/0.5633, allocations: 0 / 0.9538 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.079e-05/0.5634, allocations: 129.8 kB / 0.954 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5634, allocations: 0 / 0.954 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001905/0.5636, allocations: 6.969 kB / 0.954 GB, free: 5.094 MB / 0.7169 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.0002039/0.5638, allocations: 0.6158 MB / 0.9546 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.094e-05/0.5639, allocations: 18.72 kB / 0.9546 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.5639, allocations: 0 / 0.9546 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.106e-05/0.5639, allocations: 7.906 kB / 0.9546 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001485/0.564, allocations: 7.875 kB / 0.9546 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007924/0.5648, allocations: 1.326 MB / 0.9559 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.758e-05/0.5649, allocations: 0.6946 MB / 0.9566 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.142e-05/0.565, allocations: 17.77 kB / 0.9566 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.459e-05/0.565, allocations: 17.84 kB / 0.9566 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.565, allocations: 1.156 kB / 0.9566 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01561/0.5806, allocations: 1.541 MB / 0.9581 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.198/7.779, allocations: 6.969 kB / 0.9581 GB, free: 1.637 MB / 0.7169 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