Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0007742/0.0007742, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008631/0.0008631, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8952/0.8952, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.78/1.78, allocations: 389 MB / 0.633 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.894e-06/1.894e-06, allocations: 0 / 0.9997 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.234e-05/2.424e-05, allocations: 5.094 kB / 0.9997 GB, free: 13.48 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001554/0.001578, allocations: 0.7907 MB / 1 GB, free: 12.7 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0001178/0.001696, allocations: 43.78 kB / 1 GB, free: 12.65 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.343e-05/0.001759, allocations: 3.938 kB / 1 GB, free: 12.65 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 4.394e-05/0.001803, allocations: 11.88 kB / 1 GB, free: 12.64 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 8.975e-05/0.001893, allocations: 3.938 kB / 1.001 GB, free: 12.63 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 4.94e-05/0.001942, allocations: 23.97 kB / 1.001 GB, free: 12.61 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001194/0.002062, allocations: 63.78 kB / 1.001 GB, free: 12.55 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.002218, allocations: 27.97 kB / 1.001 GB, free: 12.52 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 9.836e-05/0.002316, allocations: 35.91 kB / 1.001 GB, free: 12.48 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 5.333e-05/0.00237, allocations: 19.91 kB / 1.001 GB, free: 12.46 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.02e-05/0.0024, allocations: 8 kB / 1.001 GB, free: 12.46 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 8.005e-06/0.002408, allocations: 4 kB / 1.001 GB, free: 12.45 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.296e-05/0.002431, allocations: 19.92 kB / 1.001 GB, free: 12.43 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.346e-05/0.002464, allocations: 11.94 kB / 1.001 GB, free: 12.42 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001383/0.002603, allocations: 75.69 kB / 1.001 GB, free: 12.35 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.002606, allocations: 4 kB / 1.001 GB, free: 12.34 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.693e-06/0.002608, allocations: 0 / 1.001 GB, free: 12.34 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.002614, allocations: 0 / 1.001 GB, free: 12.34 MB / 0.9636 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.0004368/0.003051, allocations: 306 kB / 1.001 GB, free: 12.01 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.003097, allocations: 16.69 kB / 1.001 GB, free: 12 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.245e-05/0.003129, allocations: 38.75 kB / 1.001 GB, free: 11.95 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.33e-05/0.003153, allocations: 8.891 kB / 1.001 GB, free: 11.94 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001565/0.003309, allocations: 141.5 kB / 1.001 GB, free: 11.78 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.177e-06/0.003318, allocations: 4.375 kB / 1.001 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.838e-06/0.003328, allocations: 8.375 kB / 1.001 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001283/0.003456, allocations: 105.6 kB / 1.001 GB, free: 11.65 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.003465, allocations: 192 / 1.001 GB, free: 11.65 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.003475, allocations: 384 / 1.001 GB, free: 11.65 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.003481, allocations: 4.125 kB / 1.001 GB, free: 11.65 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.005e-05/0.003541, allocations: 39.92 kB / 1.001 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004357/0.003977, allocations: 387.7 kB / 1.002 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 6.237e-05/0.004039, allocations: 45.27 kB / 1.002 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.103e-05/0.00407, allocations: 13.84 kB / 1.002 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 8.105e-06/0.004079, allocations: 4 kB / 1.002 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/0.004099, allocations: 38.56 kB / 1.002 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.004101, allocations: 0 / 1.002 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2): time 0.0001611/0.004262, allocations: 57.58 kB / 1.002 GB, free: 10.99 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.004307, allocations: 81.05 kB / 1.002 GB, free: 10.89 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.004429, allocations: 161.6 kB / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.518e-06/0.004439, allocations: 25.7 kB / 1.002 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.122e-05/0.00449, allocations: 100 kB / 1.002 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 8.786e-06/0.004499, allocations: 11.88 kB / 1.002 GB, free: 10.58 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.78e-05/0.004527, allocations: 17.72 kB / 1.002 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.004673, allocations: 327 kB / 1.003 GB, free: 10.23 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.694e-05/0.00469, allocations: 7.984 kB / 1.003 GB, free: 10.22 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.789e-05/0.004708, allocations: 17.72 kB / 1.003 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.789e-05/0.004746, allocations: 25.72 kB / 1.003 GB, free: 10.17 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.004748, allocations: 0 / 1.003 GB, free: 10.17 MB / 0.9636 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.642e-05/0.004815, allocations: 65.58 kB / 1.003 GB, free: 10.1 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.004827, allocations: 4 kB / 1.003 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.004833, allocations: 0 / 1.003 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.004846, allocations: 12 kB / 1.003 GB, free: 10.08 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.969e-05/0.004906, allocations: 7.938 kB / 1.003 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.004911, allocations: 0 / 1.003 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.926e-05/0.00494, allocations: 11.89 kB / 1.003 GB, free: 10.06 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-06/0.004945, allocations: 0 / 1.003 GB, free: 10.06 MB / 0.9636 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 6.114e-05/0.005006, allocations: 113.8 kB / 1.003 GB, free: 9.941 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.319e-05/0.005029, allocations: 11.94 kB / 1.003 GB, free: 9.93 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.329e-05/0.005052, allocations: 11.81 kB / 1.003 GB, free: 9.918 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.005054, allocations: 0 / 1.003 GB, free: 9.918 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.005059, allocations: 7.875 kB / 1.003 GB, free: 9.91 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.005062, allocations: 0 / 1.003 GB, free: 9.91 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002725/0.005335, allocations: 438 kB / 1.003 GB, free: 9.426 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.005336, allocations: 0 / 1.003 GB, free: 9.426 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.321e-05/0.005349, allocations: 7.875 kB / 1.003 GB, free: 9.418 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.005351, allocations: 4 kB / 1.003 GB, free: 9.414 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.154e-06/0.005358, allocations: 3.984 kB / 1.003 GB, free: 9.41 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.00536, allocations: 0 / 1.003 GB, free: 9.41 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.00536, allocations: 0 / 1.003 GB, free: 9.41 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.41e-05/0.005424, allocations: 74.73 kB / 1.003 GB, free: 9.316 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 2.653e-05/0.005451, allocations: 23.83 kB / 1.003 GB, free: 9.293 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.005463, allocations: 4.094 kB / 1.003 GB, free: 9.289 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.037e-05/0.005473, allocations: 96 / 1.003 GB, free: 9.289 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.396e-05/0.005487, allocations: 3.984 kB / 1.003 GB, free: 9.285 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.00549, allocations: 4 kB / 1.003 GB, free: 9.281 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 6.53e-05/0.005556, allocations: 125.4 kB / 1.004 GB, free: 9.16 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.005556, allocations: 0 / 1.004 GB, free: 9.16 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001341/0.00569, allocations: 4 kB / 1.004 GB, free: 9.156 MB / 0.9636 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.0002738/0.005963, allocations: 0.6132 MB / 1.004 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 7.486e-05/0.006038, allocations: 19.97 kB / 1.004 GB, free: 8.492 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.00604, allocations: 0 / 1.004 GB, free: 8.492 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.911e-06/0.006046, allocations: 4 kB / 1.004 GB, free: 8.488 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001313/0.006177, allocations: 15.92 kB / 1.004 GB, free: 8.473 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008675/0.007045, allocations: 1.344 MB / 1.006 GB, free: 7.027 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.744e-05/0.007092, allocations: 75.58 kB / 1.006 GB, free: 6.934 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.98e-05/0.007122, allocations: 16.47 kB / 1.006 GB, free: 6.918 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.253e-05/0.007164, allocations: 24.44 kB / 1.006 GB, free: 6.891 MB / 0.9636 GB Notification: Performance of SimCode: time 5.21e-07/0.007165, allocations: 0 / 1.006 GB, free: 6.891 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01527/0.02244, allocations: 2.231 MB / 1.008 GB, free: 4.789 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.782/6.804, allocations: 9.594 kB / 1.008 GB, free: 4.781 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.csv --start-time 0 --stop-time 10 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 11.016426437534392]