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.001655/0.001655, 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.001942/0.001942, 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.33/1.33, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.316/2.316, allocations: 390.2 MB / 0.6647 GB, free: 436 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 67.91 kB / 0.8126 GB, free: 14.35 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5396/0.541, allocations: 140.4 MB / 0.9497 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.001724/0.5427, allocations: 0.8171 MB / 0.9505 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 9.404e-05/0.5428, allocations: 40.73 kB / 0.9506 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.839e-05/0.5429, allocations: 5.562 kB / 0.9506 GB, free: 8.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.377e-05/0.5429, allocations: 15.8 kB / 0.9506 GB, free: 8.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.741e-05/0.543, allocations: 5.875 kB / 0.9506 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 4.467e-05/0.543, allocations: 19.52 kB / 0.9506 GB, free: 8.504 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.098e-05/0.5431, allocations: 62.83 kB / 0.9507 GB, free: 8.465 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.5433, allocations: 44.75 kB / 0.9507 GB, free: 8.438 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.065e-05/0.5433, allocations: 23.39 kB / 0.9507 GB, free: 8.422 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.043e-05/0.5433, allocations: 28.02 kB / 0.9508 GB, free: 8.398 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.737e-05/0.5434, allocations: 6.688 kB / 0.9508 GB, free: 8.398 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.312e-05/0.5434, allocations: 5.25 kB / 0.9508 GB, free: 8.398 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.666e-05/0.5434, allocations: 18.7 kB / 0.9508 GB, free: 8.383 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.016e-05/0.5434, allocations: 30.59 kB / 0.9508 GB, free: 8.359 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.153e-05/0.5435, allocations: 71.3 kB / 0.9509 GB, free: 8.305 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.5435, allocations: 0 / 0.9509 GB, free: 8.305 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.563e-06/0.5435, allocations: 0 / 0.9509 GB, free: 8.305 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.825e-06/0.5436, allocations: 4 kB / 0.9509 GB, free: 8.301 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.0003068/0.5439, allocations: 391.3 kB / 0.9513 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.5439, allocations: 9.906 kB / 0.9513 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.666e-05/0.5439, allocations: 40.08 kB / 0.9513 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.544e-05/0.544, allocations: 10.06 kB / 0.9513 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.5441, allocations: 189.9 kB / 0.9515 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.5441, allocations: 4.312 kB / 0.9515 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.162e-05/0.5441, allocations: 9.438 kB / 0.9515 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001234/0.5443, allocations: 97.89 kB / 0.9516 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.5443, allocations: 5.094 kB / 0.9516 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.5443, allocations: 1.344 kB / 0.9516 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.5443, allocations: 5.297 kB / 0.9516 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.995e-05/0.5444, allocations: 35.23 kB / 0.9516 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003818/0.5448, allocations: 442 kB / 0.9521 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.75e-05/0.5448, allocations: 40.3 kB / 0.9521 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.973e-05/0.5449, allocations: 19.62 kB / 0.9521 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.873e-06/0.5449, allocations: 5.312 kB / 0.9521 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.58e-05/0.5449, allocations: 39.64 kB / 0.9522 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.223e-06/0.5449, allocations: 0 / 0.9522 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001424/0.545, allocations: 54.73 kB / 0.9522 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.665e-05/0.5451, allocations: 78.36 kB / 0.9523 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.5452, allocations: 163.5 kB / 0.9524 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.001e-06/0.5452, allocations: 25.7 kB / 0.9525 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.932e-05/0.5452, allocations: 113.1 kB / 0.9526 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.913e-06/0.5453, allocations: 9.344 kB / 0.9526 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.738e-05/0.5453, allocations: 20.88 kB / 0.9526 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.877e-05/0.5453, allocations: 325.4 kB / 0.9529 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.445e-05/0.5453, allocations: 2.656 kB / 0.9529 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.687e-05/0.5454, allocations: 18.59 kB / 0.9529 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.461e-05/0.5454, allocations: 42.98 kB / 0.953 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.5454, allocations: 0 / 0.953 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.969e-05/0.5455, allocations: 51.52 kB / 0.953 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.5455, allocations: 12.47 kB / 0.953 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-06/0.5455, allocations: 1.188 kB / 0.953 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.5455, allocations: 0 / 0.953 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.51e-05/0.5456, allocations: 10.2 kB / 0.9531 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.5456, allocations: 2 kB / 0.9531 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.881e-05/0.5456, allocations: 1.5 kB / 0.9531 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-06/0.5456, allocations: 1.312 kB / 0.9531 GB, free: 6.07 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.245e-05/0.5457, allocations: 116.5 kB / 0.9532 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.28e-05/0.5457, allocations: 11.78 kB / 0.9532 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.902e-05/0.5458, allocations: 15.2 kB / 0.9532 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.5458, allocations: 1.344 kB / 0.9532 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.5458, allocations: 0 / 0.9532 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.5458, allocations: 1.281 kB / 0.9532 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002447/0.546, allocations: 478.7 kB / 0.9537 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.546, allocations: 0 / 0.9537 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.837e-05/0.5461, allocations: 2.594 kB / 0.9537 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.542e-06/0.5461, allocations: 1.375 kB / 0.9537 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.979e-06/0.5461, allocations: 1.375 kB / 0.9537 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.5461, allocations: 0 / 0.9537 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.5461, allocations: 1.125 kB / 0.9537 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.578e-05/0.5461, allocations: 86.33 kB / 0.9537 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.747e-05/0.5462, allocations: 87.8 kB / 0.9538 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.5462, allocations: 5.406 kB / 0.9538 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.173e-05/0.5462, allocations: 3.984 kB / 0.9538 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.666e-06/0.5462, allocations: 1.5 kB / 0.9538 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.5462, allocations: 1.406 kB / 0.9538 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.974e-05/0.5463, allocations: 124.7 kB / 0.954 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5463, allocations: 0 / 0.954 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002088/0.5465, allocations: 7.938 kB / 0.954 GB, free: 5.121 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.0001983/0.5467, allocations: 0.6183 MB / 0.9546 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.57e-05/0.5468, allocations: 15.31 kB / 0.9546 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.5468, allocations: 4.156 kB / 0.9546 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.12e-05/0.5468, allocations: 8.25 kB / 0.9546 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001484/0.547, allocations: 11.34 kB / 0.9546 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008055/0.5478, allocations: 1.325 MB / 0.9559 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.57e-05/0.5479, allocations: 0.6956 MB / 0.9566 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.921e-05/0.5479, allocations: 8.578 kB / 0.9566 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.725e-05/0.548, allocations: 23.25 kB / 0.9566 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of SimCode: time 2.8e-07/0.548, allocations: 4 kB / 0.9566 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01407/0.5621, allocations: 1.536 MB / 0.9581 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.002/7.564, allocations: 16.67 kB / 0.9581 GB, free: 1.656 MB / 0.7169 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