Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.From_ton,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_9_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.004426/0.004427, allocations: 105.9 kB / 15.73 MB, free: 6 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.001081/0.00108, allocations: 189 kB / 16.67 MB, free: 5.926 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.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.213/2.213, allocations: 390.3 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 75.88 kB / 0.9504 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6502/0.6514, allocations: 140.4 MB / 1.087 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.001678/0.6532, allocations: 0.8275 MB / 1.088 GB, free: 4.738 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 9.688e-05/0.6533, allocations: 40.28 kB / 1.088 GB, free: 4.707 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.823e-05/0.6533, allocations: 1.25 kB / 1.088 GB, free: 4.707 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.218e-05/0.6534, allocations: 10.86 kB / 1.088 GB, free: 4.699 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.241e-05/0.6534, allocations: 13.11 kB / 1.088 GB, free: 4.688 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 5.049e-05/0.6535, allocations: 15.8 kB / 1.088 GB, free: 4.68 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.658e-05/0.6536, allocations: 64.06 kB / 1.088 GB, free: 4.648 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.6537, allocations: 41.39 kB / 1.088 GB, free: 4.629 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.029e-05/0.6538, allocations: 29.02 kB / 1.088 GB, free: 4.609 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.678e-05/0.6538, allocations: 30.09 kB / 1.089 GB, free: 4.59 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.562e-05/0.6538, allocations: 6.844 kB / 1.089 GB, free: 4.59 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.696e-06/0.6538, allocations: 6.125 kB / 1.089 GB, free: 4.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.811e-05/0.6539, allocations: 12.81 kB / 1.089 GB, free: 4.582 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.458e-05/0.6539, allocations: 32.09 kB / 1.089 GB, free: 4.559 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 9.51e-05/0.654, allocations: 81.39 kB / 1.089 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.654, allocations: 0 / 1.089 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.643e-06/0.654, allocations: 1.094 kB / 1.089 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.654, allocations: 0 / 1.089 GB, free: 4.52 MB / 0.8575 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.0003016/0.6543, allocations: 382.3 kB / 1.089 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.6544, allocations: 9.25 kB / 1.089 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.711e-05/0.6544, allocations: 39.73 kB / 1.089 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.447e-05/0.6544, allocations: 13.03 kB / 1.089 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.6546, allocations: 192.9 kB / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.014e-06/0.6546, allocations: 7.719 kB / 1.089 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/0.6546, allocations: 5.094 kB / 1.089 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.6547, allocations: 90.75 kB / 1.089 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.6548, allocations: 9.031 kB / 1.089 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.277e-06/0.6548, allocations: 4 kB / 1.089 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.6548, allocations: 2.188 kB / 1.089 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.93e-05/0.6549, allocations: 36.69 kB / 1.089 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003983/0.6553, allocations: 437.6 kB / 1.09 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 3.748e-05/0.6553, allocations: 45.95 kB / 1.09 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.888e-05/0.6553, allocations: 25.59 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.6554, allocations: 0 / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.078e-05/0.6554, allocations: 32.55 kB / 1.09 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.6554, allocations: 0 / 1.09 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001444/0.6555, allocations: 61.11 kB / 1.09 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.003e-05/0.6556, allocations: 78.92 kB / 1.09 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.6557, allocations: 158.9 kB / 1.09 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.43e-06/0.6557, allocations: 29.64 kB / 1.09 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.735e-05/0.6557, allocations: 107.7 kB / 1.09 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.753e-06/0.6557, allocations: 9.656 kB / 1.09 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.632e-05/0.6558, allocations: 14.03 kB / 1.09 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.572e-05/0.6558, allocations: 324.5 kB / 1.091 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.672e-05/0.6558, allocations: 7.719 kB / 1.091 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.745e-05/0.6558, allocations: 16.69 kB / 1.091 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.312e-05/0.6559, allocations: 30.48 kB / 1.091 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.6559, allocations: 1.375 kB / 1.091 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.902e-05/0.656, allocations: 56.5 kB / 1.091 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.656, allocations: 13.66 kB / 1.091 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.656, allocations: 1.094 kB / 1.091 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.656, allocations: 1.156 kB / 1.091 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.482e-05/0.6561, allocations: 5.969 kB / 1.091 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.207e-06/0.6561, allocations: 1.125 kB / 1.091 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.981e-05/0.6561, allocations: 9.969 kB / 1.091 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.468e-06/0.6561, allocations: 2.922 kB / 1.091 GB, free: 2.398 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 4.481e-05/0.6562, allocations: 113.6 kB / 1.091 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.223e-05/0.6562, allocations: 12.06 kB / 1.091 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.158e-05/0.6562, allocations: 17.25 kB / 1.091 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.6562, allocations: 0 / 1.091 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.6563, allocations: 1.125 kB / 1.091 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.6563, allocations: 1 kB / 1.091 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002599/0.6565, allocations: 471.7 kB / 1.091 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.6565, allocations: 0 / 1.091 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.044e-05/0.6566, allocations: 8.172 kB / 1.091 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.6566, allocations: 4.062 kB / 1.091 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.6566, allocations: 0.875 kB / 1.091 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.6566, allocations: 5.516 kB / 1.091 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.6566, allocations: 1.094 kB / 1.091 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.612e-05/0.6566, allocations: 76.47 kB / 1.091 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.93e-05/0.6567, allocations: 93.88 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.18e-05/0.6567, allocations: 2.078 kB / 1.092 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.093e-05/0.6567, allocations: 5.375 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.455e-05/0.6567, allocations: 5.891 kB / 1.092 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.6568, allocations: 1.375 kB / 1.092 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.826e-05/0.6568, allocations: 120 kB / 1.092 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6568, allocations: 0 / 1.092 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001955/0.657, allocations: 11.55 kB / 1.092 GB, free: 1.477 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.0002819/0.6573, allocations: 0.6121 MB / 1.092 GB, free: 16.87 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 7.752e-05/0.6574, allocations: 23.67 kB / 1.092 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.6574, allocations: 0 / 1.092 GB, free: 16.86 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 1.104e-05/0.6574, allocations: 8.953 kB / 1.092 GB, free: 16.85 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001484/0.6576, allocations: 14.38 kB / 1.092 GB, free: 16.84 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009833/0.6586, allocations: 1.325 MB / 1.094 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002081/0.6588, allocations: 0.6928 MB / 1.094 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.127e-05/0.6588, allocations: 11.58 kB / 1.094 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.776e-05/0.6589, allocations: 24.48 kB / 1.094 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of SimCode: time 3.2e-07/0.6589, allocations: 0 / 1.094 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01585/0.6747, allocations: 1.575 MB / 1.096 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.075/7.75, allocations: 5.5 kB / 1.096 GB, free: 14.52 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_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_From_ton.fmu > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches