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.001858/0.001858, allocations: 114.7 kB / 17.16 MB, free: 5.895 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.002265/0.002265, allocations: 210.3 kB / 20.13 MB, free: 2.949 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.613/1.613, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] 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 3.036/3.036, allocations: 0.5003 GB / 0.8026 GB, free: 6.766 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="cs",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.003042/0.003042, allocations: 69.3 kB / 1.165 GB, free: 0.5234 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.135/1.138, allocations: 178.9 MB / 1.34 GB, free: 16.31 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002001/1.14, allocations: 0.8355 MB / 1.341 GB, free: 15.75 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0001134/1.14, allocations: 40.98 kB / 1.341 GB, free: 15.72 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.223e-05/1.14, allocations: 1.562 kB / 1.341 GB, free: 15.72 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.389e-05/1.14, allocations: 9.75 kB / 1.341 GB, free: 15.71 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.031e-05/1.14, allocations: 10.05 kB / 1.341 GB, free: 15.71 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 5.37e-05/1.14, allocations: 15.94 kB / 1.341 GB, free: 15.7 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001223/1.14, allocations: 68.08 kB / 1.341 GB, free: 15.66 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/1.14, allocations: 35.69 kB / 1.341 GB, free: 15.64 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.626e-05/1.14, allocations: 26.97 kB / 1.341 GB, free: 15.63 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.209e-05/1.14, allocations: 30.84 kB / 1.341 GB, free: 15.61 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.488e-05/1.141, allocations: 9.375 kB / 1.341 GB, free: 15.61 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 1.254e-05/1.141, allocations: 6.688 kB / 1.341 GB, free: 15.61 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.151e-05/1.141, allocations: 12.06 kB / 1.341 GB, free: 15.6 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.828e-05/1.141, allocations: 36.78 kB / 1.341 GB, free: 15.57 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000127/1.141, allocations: 76.28 kB / 1.341 GB, free: 15.54 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/1.141, allocations: 1.062 kB / 1.341 GB, free: 15.54 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.114e-06/1.141, allocations: 0 / 1.341 GB, free: 15.54 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.34e-06/1.141, allocations: 4 kB / 1.341 GB, free: 15.53 MB / 1.061 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.0003856/1.141, allocations: 380.9 kB / 1.342 GB, free: 15.14 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/1.141, allocations: 10.28 kB / 1.342 GB, free: 15.14 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.937e-05/1.141, allocations: 2.562 kB / 1.342 GB, free: 15.14 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.594e-05/1.141, allocations: 38.81 kB / 1.342 GB, free: 15.1 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.811e-05/1.141, allocations: 9.328 kB / 1.342 GB, free: 15.09 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001732/1.141, allocations: 205.1 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-06/1.141, allocations: 4.188 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/1.141, allocations: 11.97 kB / 1.342 GB, free: 14.86 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001644/1.142, allocations: 96.22 kB / 1.342 GB, free: 14.79 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/1.142, allocations: 0 / 1.342 GB, free: 14.79 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/1.142, allocations: 8.969 kB / 1.342 GB, free: 14.79 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/1.142, allocations: 6.797 kB / 1.342 GB, free: 14.78 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.861e-05/1.142, allocations: 35.77 kB / 1.342 GB, free: 14.77 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000454/1.142, allocations: 434.3 kB / 1.343 GB, free: 14.37 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 4.559e-05/1.142, allocations: 41.36 kB / 1.343 GB, free: 14.31 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.08e-05/1.142, allocations: 19.97 kB / 1.343 GB, free: 14.29 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 7.945e-06/1.142, allocations: 1.938 kB / 1.343 GB, free: 14.29 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.477e-05/1.142, allocations: 39.66 kB / 1.343 GB, free: 14.25 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/1.142, allocations: 3.938 kB / 1.343 GB, free: 14.24 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0001687/1.142, allocations: 53.11 kB / 1.343 GB, free: 14.2 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.525e-05/1.142, allocations: 86.36 kB / 1.343 GB, free: 14.1 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/1.143, allocations: 156 kB / 1.343 GB, free: 13.98 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 7.704e-06/1.143, allocations: 25.7 kB / 1.343 GB, free: 13.95 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 4.743e-05/1.143, allocations: 105.1 kB / 1.343 GB, free: 13.86 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 9.347e-06/1.143, allocations: 13.89 kB / 1.343 GB, free: 13.84 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.995e-05/1.143, allocations: 17.52 kB / 1.343 GB, free: 13.82 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.639e-05/1.143, allocations: 315.7 kB / 1.343 GB, free: 13.51 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.937e-05/1.143, allocations: 8.344 kB / 1.343 GB, free: 13.51 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.084e-05/1.143, allocations: 19.41 kB / 1.343 GB, free: 13.49 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.676e-05/1.143, allocations: 27.45 kB / 1.343 GB, free: 13.46 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/1.143, allocations: 0 / 1.343 GB, free: 13.46 MB / 1.061 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.672e-05/1.143, allocations: 62.31 kB / 1.343 GB, free: 13.42 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/1.143, allocations: 9.625 kB / 1.343 GB, free: 13.41 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/1.143, allocations: 0 / 1.343 GB, free: 13.41 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/1.143, allocations: 1.281 kB / 1.343 GB, free: 13.41 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.985e-05/1.143, allocations: 7.391 kB / 1.343 GB, free: 13.41 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/1.143, allocations: 0 / 1.343 GB, free: 13.41 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.21e-05/1.143, allocations: 11.41 kB / 1.343 GB, free: 13.41 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/1.143, allocations: 1.688 kB / 1.343 GB, free: 13.41 MB / 1.061 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.132e-05/1.143, allocations: 120.6 kB / 1.344 GB, free: 13.28 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.547e-05/1.143, allocations: 16.48 kB / 1.344 GB, free: 13.27 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.951e-05/1.143, allocations: 8.719 kB / 1.344 GB, free: 13.26 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/1.143, allocations: 1.281 kB / 1.344 GB, free: 13.26 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/1.143, allocations: 4.75 kB / 1.344 GB, free: 13.26 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/1.143, allocations: 1.906 kB / 1.344 GB, free: 13.26 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002865/1.143, allocations: 477.9 kB / 1.344 GB, free: 12.77 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/1.143, allocations: 1.156 kB / 1.344 GB, free: 12.77 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.05e-05/1.143, allocations: 2.906 kB / 1.344 GB, free: 12.77 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/1.143, allocations: 1.094 kB / 1.344 GB, free: 12.77 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.311e-06/1.143, allocations: 1.391 kB / 1.344 GB, free: 12.77 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/1.143, allocations: 5.125 kB / 1.344 GB, free: 12.76 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/1.143, allocations: 0 / 1.344 GB, free: 12.76 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.593e-05/1.144, allocations: 85.7 kB / 1.344 GB, free: 12.67 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.288e-05/1.144, allocations: 90.86 kB / 1.344 GB, free: 12.57 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/1.144, allocations: 4.969 kB / 1.344 GB, free: 12.57 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.374e-05/1.144, allocations: 1.797 kB / 1.344 GB, free: 12.57 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.673e-05/1.144, allocations: 1.75 kB / 1.344 GB, free: 12.57 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/1.144, allocations: 1.094 kB / 1.344 GB, free: 12.57 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.462e-05/1.144, allocations: 119.7 kB / 1.344 GB, free: 12.48 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.144, allocations: 0 / 1.344 GB, free: 12.48 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0001941/1.144, allocations: 11.94 kB / 1.344 GB, free: 12.48 MB / 1.061 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.0002418/1.144, allocations: 0.6104 MB / 1.345 GB, free: 11.87 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 8.838e-05/1.144, allocations: 18.95 kB / 1.345 GB, free: 11.86 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/1.144, allocations: 5.312 kB / 1.345 GB, free: 11.86 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.213e-05/1.144, allocations: 8.047 kB / 1.345 GB, free: 11.85 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001545/1.144, allocations: 7.406 kB / 1.345 GB, free: 11.85 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009048/1.145, allocations: 1.328 MB / 1.346 GB, free: 10.63 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001176/1.145, allocations: 0.6963 MB / 1.347 GB, free: 9.93 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.102e-05/1.145, allocations: 7.656 kB / 1.347 GB, free: 9.93 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.168e-05/1.145, allocations: 24.89 kB / 1.347 GB, free: 9.91 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/1.145, allocations: 0 / 1.347 GB, free: 9.91 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0182/1.164, allocations: 1.641 MB / 1.349 GB, free: 9.508 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.688/9.852, allocations: 9.969 kB / 1.349 GB, free: 9.504 MB / 1.061 GB " [Timeout remaining time 290] (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/jenkins1/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: 16.591137331037316]