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.002061/0.002061, allocations: 106.6 kB / 18.94 MB, free: 2.957 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.002375/0.002375, allocations: 217.6 kB / 22.25 MB, free: 5.137 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.489/1.489, allocations: 230.6 MB / 256 MB, free: 8.039 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.422/3.422, allocations: 0.505 GB / 0.8101 GB, free: 22.06 MB / 0.6231 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="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: 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.003159/0.003159, allocations: 67.36 kB / 1.177 GB, free: 17.11 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3661, allocations: 180.2 MB / 1.353 GB, free: 8.473 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002448/0.3686, allocations: 0.8374 MB / 1.354 GB, free: 7.637 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0001529/0.3687, allocations: 43.78 kB / 1.354 GB, free: 7.594 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.591e-05/0.3688, allocations: 4 kB / 1.354 GB, free: 7.59 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.497e-05/0.3688, allocations: 7.875 kB / 1.354 GB, free: 7.582 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.559e-05/0.3689, allocations: 7.922 kB / 1.354 GB, free: 7.574 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 5.509e-05/0.369, allocations: 19.98 kB / 1.354 GB, free: 7.555 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001401/0.3691, allocations: 59.78 kB / 1.354 GB, free: 7.496 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.3693, allocations: 35.97 kB / 1.354 GB, free: 7.461 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 7.981e-05/0.3694, allocations: 27.86 kB / 1.354 GB, free: 7.434 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.188e-05/0.3694, allocations: 27.8 kB / 1.354 GB, free: 7.406 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.959e-05/0.3694, allocations: 8 kB / 1.354 GB, free: 7.398 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 1.001e-05/0.3694, allocations: 4 kB / 1.354 GB, free: 7.395 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.274e-05/0.3695, allocations: 15.98 kB / 1.354 GB, free: 7.379 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 5.076e-05/0.3695, allocations: 43.67 kB / 1.354 GB, free: 7.336 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001467/0.3697, allocations: 71.86 kB / 1.354 GB, free: 7.266 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.3697, allocations: 0 / 1.354 GB, free: 7.266 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3697, allocations: 0 / 1.354 GB, free: 7.266 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.158e-05/0.3697, allocations: 0 / 1.354 GB, free: 7.266 MB / 1.045 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.0004881/0.3702, allocations: 314 kB / 1.354 GB, free: 6.926 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.3702, allocations: 12.03 kB / 1.354 GB, free: 6.914 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.138e-05/0.3703, allocations: 34.75 kB / 1.354 GB, free: 6.871 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.436e-05/0.3703, allocations: 16.84 kB / 1.354 GB, free: 6.855 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002161/0.3705, allocations: 130.4 kB / 1.355 GB, free: 6.703 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.57e-05/0.3705, allocations: 8.375 kB / 1.355 GB, free: 6.695 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.475e-05/0.3705, allocations: 4.375 kB / 1.355 GB, free: 6.691 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001872/0.3707, allocations: 106.3 kB / 1.355 GB, free: 6.578 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.3707, allocations: 3.938 kB / 1.355 GB, free: 6.574 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.3707, allocations: 3.938 kB / 1.355 GB, free: 6.57 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.3708, allocations: 0 / 1.355 GB, free: 6.57 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.149e-05/0.3708, allocations: 35.98 kB / 1.355 GB, free: 6.535 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005883/0.3714, allocations: 399.7 kB / 1.355 GB, free: 6.098 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 6.473e-05/0.3715, allocations: 49.33 kB / 1.355 GB, free: 6.031 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.886e-05/0.3715, allocations: 21.77 kB / 1.355 GB, free: 6.004 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 7.865e-06/0.3715, allocations: 0 / 1.355 GB, free: 6.004 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.3716, allocations: 38.5 kB / 1.355 GB, free: 5.957 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 3.126e-06/0.3716, allocations: 7.938 kB / 1.355 GB, free: 5.949 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0001727/0.3717, allocations: 49.59 kB / 1.355 GB, free: 5.895 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.07e-05/0.3718, allocations: 84.98 kB / 1.355 GB, free: 5.793 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001671/0.372, allocations: 159.3 kB / 1.355 GB, free: 5.629 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.372, allocations: 25.7 kB / 1.355 GB, free: 5.598 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.369e-05/0.3721, allocations: 104 kB / 1.356 GB, free: 5.492 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.166e-05/0.3721, allocations: 7.953 kB / 1.356 GB, free: 5.484 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.806e-05/0.3721, allocations: 21.95 kB / 1.356 GB, free: 5.457 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001774/0.3723, allocations: 318.8 kB / 1.356 GB, free: 5.137 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.923e-05/0.3723, allocations: 7.984 kB / 1.356 GB, free: 5.129 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.66e-05/0.3723, allocations: 17.72 kB / 1.356 GB, free: 5.105 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.773e-05/0.3724, allocations: 25.72 kB / 1.356 GB, free: 5.074 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.3724, allocations: 4 kB / 1.356 GB, free: 5.07 MB / 1.045 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001001/0.3725, allocations: 65.53 kB / 1.356 GB, free: 5 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.3725, allocations: 7.938 kB / 1.356 GB, free: 4.992 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.3725, allocations: 0 / 1.356 GB, free: 4.992 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.3725, allocations: 4 kB / 1.356 GB, free: 4.988 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.193e-05/0.3726, allocations: 4 kB / 1.356 GB, free: 4.984 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.3726, allocations: 0 / 1.356 GB, free: 4.984 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.914e-05/0.3726, allocations: 4 kB / 1.356 GB, free: 4.98 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.787e-06/0.3726, allocations: 0 / 1.356 GB, free: 4.98 MB / 1.045 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 9.844e-05/0.3727, allocations: 121.7 kB / 1.356 GB, free: 4.852 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.878e-05/0.3728, allocations: 15.95 kB / 1.356 GB, free: 4.836 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.959e-05/0.3728, allocations: 15.8 kB / 1.356 GB, free: 4.816 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3728, allocations: 0 / 1.356 GB, free: 4.816 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3728, allocations: 0 / 1.356 GB, free: 4.816 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.3728, allocations: 0 / 1.356 GB, free: 4.816 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000472/0.3733, allocations: 453.7 kB / 1.357 GB, free: 4.316 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3733, allocations: 0 / 1.357 GB, free: 4.316 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.057e-05/0.3733, allocations: 4.062 kB / 1.357 GB, free: 4.312 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.3733, allocations: 4 kB / 1.357 GB, free: 4.309 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.561e-06/0.3733, allocations: 4 kB / 1.357 GB, free: 4.305 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.3733, allocations: 0 / 1.357 GB, free: 4.305 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3733, allocations: 0 / 1.357 GB, free: 4.305 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001045/0.3734, allocations: 81.81 kB / 1.357 GB, free: 4.203 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 3.396e-05/0.3735, allocations: 19.88 kB / 1.357 GB, free: 4.184 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.3735, allocations: 4.031 kB / 1.357 GB, free: 4.18 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.353e-05/0.3735, allocations: 4 kB / 1.357 GB, free: 4.176 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.099e-05/0.3735, allocations: 0 / 1.357 GB, free: 4.176 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-06/0.3735, allocations: 0 / 1.357 GB, free: 4.176 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.000104/0.3736, allocations: 122.3 kB / 1.357 GB, free: 4.059 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3736, allocations: 0 / 1.357 GB, free: 4.059 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0001976/0.3738, allocations: 8 kB / 1.357 GB, free: 4.051 MB / 1.045 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.0005126/0.3743, allocations: 0.6197 MB / 1.357 GB, free: 3.402 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.000104/0.3744, allocations: 15.94 kB / 1.357 GB, free: 3.387 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3744, allocations: 0 / 1.357 GB, free: 3.387 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 1.088e-05/0.3744, allocations: 4 kB / 1.357 GB, free: 3.383 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001705/0.3746, allocations: 8.281 kB / 1.358 GB, free: 3.375 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.3761, allocations: 1.336 MB / 1.359 GB, free: 1.941 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.3765, allocations: 0.6963 MB / 1.359 GB, free: 1.219 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.307e-05/0.3765, allocations: 8.438 kB / 1.359 GB, free: 1.211 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.184e-05/0.3766, allocations: 23.42 kB / 1.36 GB, free: 1.188 MB / 1.045 GB Notification: Performance of SimCode: time 3.31e-07/0.3766, allocations: 0 / 1.36 GB, free: 1.188 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02962/0.4062, allocations: 1.69 MB / 1.361 GB, free: 15.62 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.65, allocations: 5.531 kB / 1.361 GB, free: 15.62 MB / 1.061 GB " [Timeout remaining time 288] (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: 18.598993561929092]