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.0009353/0.0009353, 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.0009521/0.0009521, allocations: 170.3 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.8956/0.8956, allocations: 177.1 MB / 202.8 MB, free: 5.734 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.753/1.753, allocations: 389.1 MB / 0.633 GB, free: 12.64 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.512e-06/1.512e-06, allocations: 0 / 0.9997 GB, free: 12.38 MB / 0.9167 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.958e-05/2.109e-05, allocations: 6.281 kB / 0.9997 GB, free: 12.37 MB / 0.9167 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001416/0.001437, allocations: 0.7829 MB / 1 GB, free: 11.58 MB / 0.9167 GB Notification: Performance of NFInst.instExpressions: time 0.0001048/0.001542, allocations: 43.78 kB / 1 GB, free: 11.54 MB / 0.9167 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.314e-05/0.001595, allocations: 4 kB / 1 GB, free: 11.54 MB / 0.9167 GB Notification: Performance of NFTyping.typeComponents: time 3.715e-05/0.001632, allocations: 7.875 kB / 1 GB, free: 11.53 MB / 0.9167 GB Notification: Performance of NFTyping.typeBindings: time 8.251e-05/0.001714, allocations: 19.78 kB / 1.001 GB, free: 11.51 MB / 0.9167 GB Notification: Performance of NFTyping.typeClassSections: time 4.354e-05/0.001758, allocations: 19.98 kB / 1.001 GB, free: 11.49 MB / 0.9167 GB Notification: Performance of NFFlatten.flatten: time 9.973e-05/0.001858, allocations: 63.75 kB / 1.001 GB, free: 11.43 MB / 0.9167 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.001988, allocations: 31.95 kB / 1.001 GB, free: 11.39 MB / 0.9167 GB Notification: Performance of NFEvalConstants.evaluate: time 9.303e-05/0.002081, allocations: 39.84 kB / 1.001 GB, free: 11.36 MB / 0.9167 GB Notification: Performance of NFSimplifyModel.simplify: time 4.197e-05/0.002123, allocations: 19.91 kB / 1.001 GB, free: 11.34 MB / 0.9167 GB Notification: Performance of NFPackage.collectConstants: time 2.495e-05/0.002148, allocations: 12 kB / 1.001 GB, free: 11.32 MB / 0.9167 GB Notification: Performance of NFFlatten.collectFunctions: time 6.923e-06/0.002155, allocations: 4 kB / 1.001 GB, free: 11.32 MB / 0.9167 GB Notification: Performance of NFScalarize.scalarize: time 2e-05/0.002175, allocations: 15.92 kB / 1.001 GB, free: 11.3 MB / 0.9167 GB Notification: Performance of NFVerifyModel.verify: time 3.081e-05/0.002206, allocations: 23.92 kB / 1.001 GB, free: 11.28 MB / 0.9167 GB Notification: Performance of NFConvertDAE.convert: time 0.0001044/0.00231, allocations: 63.77 kB / 1.001 GB, free: 11.22 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.002314, allocations: 4 kB / 1.001 GB, free: 11.21 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.593e-06/0.002315, allocations: 0 / 1.001 GB, free: 11.21 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.00232, allocations: 0 / 1.001 GB, free: 11.21 MB / 0.9167 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.0003825/0.002702, allocations: 302 kB / 1.001 GB, free: 10.89 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.002749, allocations: 12.75 kB / 1.001 GB, free: 10.88 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.616e-05/0.002785, allocations: 38.75 kB / 1.001 GB, free: 10.83 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.671e-05/0.002812, allocations: 20.81 kB / 1.001 GB, free: 10.81 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001645/0.002976, allocations: 125.7 kB / 1.001 GB, free: 10.66 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.002987, allocations: 8.375 kB / 1.001 GB, free: 10.65 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.758e-06/0.002997, allocations: 8.375 kB / 1.001 GB, free: 10.64 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001225/0.003119, allocations: 93.77 kB / 1.001 GB, free: 10.54 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.003127, allocations: 192 / 1.001 GB, free: 10.54 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.003138, allocations: 4.375 kB / 1.001 GB, free: 10.54 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.003145, allocations: 8.125 kB / 1.001 GB, free: 10.53 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.951e-05/0.003204, allocations: 31.98 kB / 1.001 GB, free: 10.5 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003992/0.003604, allocations: 407.7 kB / 1.002 GB, free: 10.05 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 4.923e-05/0.003653, allocations: 33.16 kB / 1.002 GB, free: 10 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.745e-05/0.00368, allocations: 21.84 kB / 1.002 GB, free: 9.977 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 6.663e-06/0.003687, allocations: 3.938 kB / 1.002 GB, free: 9.973 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.919e-05/0.003706, allocations: 38.53 kB / 1.002 GB, free: 9.926 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=2): time 1.283e-06/0.003707, allocations: 0 / 1.002 GB, free: 9.926 MB / 0.9167 GB Notification: Performance of matching and sorting (n=2): time 0.0001358/0.003843, allocations: 57.58 kB / 1.002 GB, free: 9.863 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.69e-05/0.00388, allocations: 85.05 kB / 1.002 GB, free: 9.762 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.003984, allocations: 158.6 kB / 1.002 GB, free: 9.598 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 8.245e-06/0.003992, allocations: 25.7 kB / 1.002 GB, free: 9.566 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001947/0.004187, allocations: 108 kB / 1.002 GB, free: 9.457 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 8.336e-06/0.004195, allocations: 7.953 kB / 1.002 GB, free: 9.449 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.522e-05/0.00422, allocations: 17.72 kB / 1.002 GB, free: 9.426 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 6.864e-05/0.004289, allocations: 314.8 kB / 1.003 GB, free: 9.109 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.556e-05/0.004304, allocations: 8 kB / 1.003 GB, free: 9.102 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.919e-05/0.004324, allocations: 17.72 kB / 1.003 GB, free: 9.078 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.806e-05/0.004362, allocations: 29.66 kB / 1.003 GB, free: 9.043 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.004364, allocations: 4 kB / 1.003 GB, free: 9.039 MB / 0.9167 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.477e-05/0.004428, allocations: 57.64 kB / 1.003 GB, free: 8.977 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.004442, allocations: 4 kB / 1.003 GB, free: 8.973 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.004447, allocations: 4 kB / 1.003 GB, free: 8.969 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.00446, allocations: 0 / 1.003 GB, free: 8.969 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.127e-05/0.004521, allocations: 11.88 kB / 1.003 GB, free: 8.957 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.004527, allocations: 3.984 kB / 1.003 GB, free: 8.953 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.038e-05/0.004548, allocations: 11.89 kB / 1.003 GB, free: 8.941 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.807e-06/0.004552, allocations: 0 / 1.003 GB, free: 8.941 MB / 0.9167 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 5.948e-05/0.004611, allocations: 118.6 kB / 1.003 GB, free: 8.816 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.073e-05/0.004632, allocations: 7.953 kB / 1.003 GB, free: 8.809 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.151e-05/0.004653, allocations: 7.812 kB / 1.003 GB, free: 8.801 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.004655, allocations: 0 / 1.003 GB, free: 8.801 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.004662, allocations: 7.938 kB / 1.003 GB, free: 8.793 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.004666, allocations: 4.078 kB / 1.003 GB, free: 8.789 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002695/0.004936, allocations: 437.9 kB / 1.003 GB, free: 8.305 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.004937, allocations: 0 / 1.003 GB, free: 8.305 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.427e-05/0.004951, allocations: 7.938 kB / 1.003 GB, free: 8.297 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.004953, allocations: 0 / 1.003 GB, free: 8.297 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.702e-06/0.00496, allocations: 4.062 kB / 1.003 GB, free: 8.293 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.004963, allocations: 0 / 1.003 GB, free: 8.293 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.004965, allocations: 7.938 kB / 1.003 GB, free: 8.285 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.895e-05/0.005024, allocations: 78.66 kB / 1.003 GB, free: 8.188 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 2.528e-05/0.005049, allocations: 11.89 kB / 1.003 GB, free: 8.176 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.292e-05/0.005062, allocations: 0 / 1.003 GB, free: 8.176 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.124e-05/0.005073, allocations: 4 kB / 1.003 GB, free: 8.172 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.43e-05/0.005087, allocations: 4 kB / 1.003 GB, free: 8.168 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.00509, allocations: 0 / 1.003 GB, free: 8.168 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 6.394e-05/0.005153, allocations: 126.4 kB / 1.004 GB, free: 8.047 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6.1e-08/0.005154, allocations: 3.938 kB / 1.004 GB, free: 8.043 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001257/0.005279, allocations: 15.98 kB / 1.004 GB, free: 8.027 MB / 0.9167 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.0002832/0.005562, allocations: 0.6132 MB / 1.004 GB, free: 7.379 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 8.256e-05/0.005645, allocations: 11.98 kB / 1.004 GB, free: 7.367 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.005649, allocations: 8 kB / 1.004 GB, free: 7.359 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 7.484e-06/0.005657, allocations: 7.938 kB / 1.004 GB, free: 7.352 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001282/0.005785, allocations: 9.484 kB / 1.004 GB, free: 7.344 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009414/0.006726, allocations: 1.335 MB / 1.006 GB, free: 5.906 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.126e-05/0.006778, allocations: 75.33 kB / 1.006 GB, free: 5.812 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 3.351e-05/0.006811, allocations: 8.484 kB / 1.006 GB, free: 5.805 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.127e-05/0.006862, allocations: 28.48 kB / 1.006 GB, free: 5.777 MB / 0.9167 GB Notification: Performance of SimCode: time 6.62e-07/0.006863, allocations: 0 / 1.006 GB, free: 5.777 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01673/0.0236, allocations: 2.24 MB / 1.008 GB, free: 3.672 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.519/6.543, allocations: 6.375 kB / 1.008 GB, free: 3.668 MB / 0.9167 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=800 --tolerance=1e-06 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.mat","/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: 10.565316811203957]