Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 103.2 kB / 16.45 MB, free: 6.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001764/0.001764, allocations: 210.4 kB / 19.43 MB, free: 3.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.586/1.586, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.378/3.378, allocations: 0.49 GB / 0.7916 GB, free: 33.32 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002269/0.002269, allocations: 69.09 kB / 1.149 GB, free: 26.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3438, allocations: 176.1 MB / 1.321 GB, free: 3.352 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002156/0.346, allocations: 0.8247 MB / 1.322 GB, free: 2.531 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0001292/0.3461, allocations: 39.78 kB / 1.322 GB, free: 2.492 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.318e-05/0.3462, allocations: 4 kB / 1.322 GB, free: 2.488 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.525e-05/0.3462, allocations: 11.88 kB / 1.322 GB, free: 2.477 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.206e-05/0.3463, allocations: 7.938 kB / 1.322 GB, free: 2.469 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.452e-05/0.3463, allocations: 19.97 kB / 1.322 GB, free: 2.449 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001207/0.3465, allocations: 67.78 kB / 1.322 GB, free: 2.383 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.3466, allocations: 27.92 kB / 1.322 GB, free: 2.355 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 7.336e-05/0.3467, allocations: 31.84 kB / 1.322 GB, free: 2.324 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 4.883e-05/0.3467, allocations: 35.73 kB / 1.322 GB, free: 2.289 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.564e-05/0.3467, allocations: 4 kB / 1.322 GB, free: 2.285 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 1.066e-05/0.3467, allocations: 8 kB / 1.322 GB, free: 2.277 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.145e-05/0.3468, allocations: 11.98 kB / 1.322 GB, free: 2.266 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.244e-05/0.3468, allocations: 35.75 kB / 1.322 GB, free: 2.23 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001332/0.3469, allocations: 83.78 kB / 1.322 GB, free: 2.148 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3469, allocations: 0 / 1.322 GB, free: 2.148 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3469, allocations: 4 kB / 1.322 GB, free: 2.145 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.3469, allocations: 0 / 1.322 GB, free: 2.145 MB / 1.014 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.0004775/0.3474, allocations: 379.1 kB / 1.322 GB, free: 1.723 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.3475, allocations: 15.98 kB / 1.322 GB, free: 1.707 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.98e-05/0.3475, allocations: 38.73 kB / 1.322 GB, free: 1.66 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.192e-05/0.3475, allocations: 12.89 kB / 1.322 GB, free: 1.648 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002194/0.3478, allocations: 192.2 kB / 1.323 GB, free: 1.422 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.3478, allocations: 8.375 kB / 1.323 GB, free: 1.414 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.3478, allocations: 8.375 kB / 1.323 GB, free: 1.406 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001689/0.348, allocations: 95.84 kB / 1.323 GB, free: 1.301 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.467e-06/0.348, allocations: 3.938 kB / 1.323 GB, free: 1.297 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.348, allocations: 4 kB / 1.323 GB, free: 1.293 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.348, allocations: 0 / 1.323 GB, free: 1.293 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.122e-05/0.3481, allocations: 35.92 kB / 1.323 GB, free: 1.258 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005857/0.3487, allocations: 436.7 kB / 1.323 GB, free: 0.7773 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 6.409e-05/0.3487, allocations: 37.28 kB / 1.323 GB, free: 0.7227 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.234e-05/0.3488, allocations: 25.83 kB / 1.323 GB, free: 0.6914 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 8.636e-06/0.3488, allocations: 7.984 kB / 1.323 GB, free: 0.6836 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.3488, allocations: 30.56 kB / 1.323 GB, free: 0.6445 MB / 1.014 GB Notification: Performance of pre-optimization done (n=2): time 1.243e-06/0.3488, allocations: 3.938 kB / 1.323 GB, free: 0.6406 MB / 1.014 GB Notification: Performance of matching and sorting (n=2): time 0.0001859/0.349, allocations: 61.48 kB / 1.323 GB, free: 0.5742 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.834e-05/0.349, allocations: 81.11 kB / 1.323 GB, free: 488 kB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/0.3492, allocations: 156.1 kB / 1.324 GB, free: 324 kB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.3492, allocations: 29.95 kB / 1.324 GB, free: 288 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 7.41e-05/0.3493, allocations: 112 kB / 1.324 GB, free: 172 kB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 7.754e-06/0.3493, allocations: 3.953 kB / 1.324 GB, free: 168 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.66e-05/0.3493, allocations: 17.7 kB / 1.324 GB, free: 144 kB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.3495, allocations: 322.8 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.93e-05/0.3495, allocations: 8 kB / 1.324 GB, free: 15.81 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.662e-05/0.3495, allocations: 25.7 kB / 1.324 GB, free: 15.78 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.614e-05/0.3496, allocations: 25.72 kB / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3496, allocations: 0 / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.322e-05/0.3497, allocations: 57.58 kB / 1.324 GB, free: 15.68 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.3497, allocations: 15.88 kB / 1.324 GB, free: 15.67 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.3497, allocations: 0 / 1.324 GB, free: 15.67 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.3497, allocations: 0 / 1.324 GB, free: 15.67 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.586e-05/0.3498, allocations: 8 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.3498, allocations: 4 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.107e-05/0.3498, allocations: 8.016 kB / 1.324 GB, free: 15.65 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-06/0.3498, allocations: 4 kB / 1.324 GB, free: 15.64 MB / 1.029 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 8.054e-05/0.3499, allocations: 109.8 kB / 1.324 GB, free: 15.53 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.955e-05/0.3499, allocations: 11.89 kB / 1.324 GB, free: 15.52 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.428e-05/0.35, allocations: 11.86 kB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.35, allocations: 0 / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.35, allocations: 7.938 kB / 1.324 GB, free: 15.49 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.35, allocations: 0 / 1.324 GB, free: 15.49 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004337/0.3504, allocations: 470.8 kB / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3504, allocations: 0 / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.256e-05/0.3504, allocations: 7.938 kB / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3504, allocations: 0 / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.009e-06/0.3504, allocations: 0 / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3504, allocations: 0 / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3504, allocations: 0 / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001137/0.3506, allocations: 93.89 kB / 1.325 GB, free: 14.85 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.985e-05/0.3506, allocations: 92.92 kB / 1.325 GB, free: 14.74 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.3506, allocations: 4 kB / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.156e-05/0.3507, allocations: 0 / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.378e-06/0.3507, allocations: 0 / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.784e-06/0.3507, allocations: 0 / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001006/0.3508, allocations: 124.8 kB / 1.325 GB, free: 14.61 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3508, allocations: 4.031 kB / 1.325 GB, free: 14.61 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000215/0.351, allocations: 12 kB / 1.325 GB, free: 14.6 MB / 1.029 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.0004228/0.3514, allocations: 0.6093 MB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 9.008e-05/0.3515, allocations: 19.97 kB / 1.326 GB, free: 13.94 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3515, allocations: 0 / 1.326 GB, free: 13.94 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.282e-05/0.3515, allocations: 8 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001563/0.3517, allocations: 8 kB / 1.326 GB, free: 13.92 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/0.353, allocations: 1.331 MB / 1.327 GB, free: 12.49 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.3533, allocations: 0.6963 MB / 1.328 GB, free: 11.77 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.178e-05/0.3534, allocations: 4.438 kB / 1.328 GB, free: 11.77 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.949e-05/0.3534, allocations: 31.36 kB / 1.328 GB, free: 11.73 MB / 1.029 GB Notification: Performance of SimCode: time 5.51e-07/0.3534, allocations: 0 / 1.328 GB, free: 11.73 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02568/0.3791, allocations: 1.583 MB / 1.329 GB, free: 10.24 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.153/8.532, allocations: 14.27 kB / 1.329 GB, free: 10.23 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.744501905050129]