Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001638/0.001638, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.479/2.479, allocations: 437 MB / 0.7104 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 63.89 kB / 0.8693 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.597/0.5986, allocations: 151.6 MB / 1.017 GB, free: 2.461 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.002197/0.6008, allocations: 0.8232 MB / 1.018 GB, free: 1.641 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.000126/0.601, allocations: 43.8 kB / 1.018 GB, free: 1.598 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.365e-05/0.601, allocations: 0 / 1.018 GB, free: 1.598 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.057e-05/0.6011, allocations: 11.86 kB / 1.018 GB, free: 1.586 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.985e-05/0.6012, allocations: 7.875 kB / 1.018 GB, free: 1.578 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 6.004e-05/0.6012, allocations: 19.98 kB / 1.018 GB, free: 1.559 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.6013, allocations: 63.83 kB / 1.018 GB, free: 1.496 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.6015, allocations: 39.97 kB / 1.018 GB, free: 1.457 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.603e-05/0.6016, allocations: 31.8 kB / 1.018 GB, free: 1.426 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.899e-05/0.6016, allocations: 23.86 kB / 1.018 GB, free: 1.402 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.298e-05/0.6016, allocations: 8 kB / 1.018 GB, free: 1.395 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.104e-05/0.6017, allocations: 4 kB / 1.018 GB, free: 1.391 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.256e-05/0.6017, allocations: 23.92 kB / 1.018 GB, free: 1.367 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.135e-05/0.6017, allocations: 31.81 kB / 1.019 GB, free: 1.336 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001252/0.6019, allocations: 73.94 kB / 1.019 GB, free: 1.266 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.6019, allocations: 0 / 1.019 GB, free: 1.266 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.323e-06/0.6019, allocations: 0 / 1.019 GB, free: 1.266 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.6019, allocations: 0 / 1.019 GB, free: 1.266 MB / 0.7637 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.000424/0.6023, allocations: 379.2 kB / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.6024, allocations: 8.031 kB / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.568e-05/0.6024, allocations: 46.73 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.856e-05/0.6025, allocations: 12.84 kB / 1.019 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002304/0.6027, allocations: 192.2 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.835e-06/0.6027, allocations: 384 / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.637e-05/0.6027, allocations: 12.38 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000148/0.6029, allocations: 95.84 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.6029, allocations: 3.938 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.6029, allocations: 0 / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.6029, allocations: 4 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.775e-05/0.603, allocations: 47.86 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005113/0.6035, allocations: 432.5 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 6.032e-05/0.6036, allocations: 41.34 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.464e-05/0.6037, allocations: 17.78 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.197e-06/0.6037, allocations: 4 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.6037, allocations: 38.55 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.453e-06/0.6037, allocations: 0 / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001745/0.6039, allocations: 53.48 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.433e-05/0.6039, allocations: 85.3 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/0.6041, allocations: 168 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.074e-05/0.6041, allocations: 25.7 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.17e-05/0.6042, allocations: 108 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.994e-06/0.6042, allocations: 3.906 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.699e-05/0.6042, allocations: 17.72 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.703e-05/0.6043, allocations: 322.8 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.689e-05/0.6044, allocations: 4 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.269e-05/0.6044, allocations: 25.7 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.012e-05/0.6044, allocations: 25.72 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.6044, allocations: 0 / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.168e-05/0.6045, allocations: 57.55 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.6045, allocations: 7.938 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.6046, allocations: 4 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.6046, allocations: 8.047 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.02e-05/0.6046, allocations: 4 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.6047, allocations: 0 / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.266e-05/0.6047, allocations: 7.906 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.947e-06/0.6047, allocations: 0 / 1.021 GB, free: 14.77 MB / 0.7794 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.894e-05/0.6048, allocations: 117.8 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.413e-05/0.6048, allocations: 11.84 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.249e-05/0.6048, allocations: 15.86 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.6049, allocations: 0 / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.6049, allocations: 4 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.6049, allocations: 0 / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003366/0.6052, allocations: 466.9 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.6052, allocations: 4 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.063e-05/0.6053, allocations: 3.984 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.6053, allocations: 7.938 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.6053, allocations: 8 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.6053, allocations: 4.047 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.6053, allocations: 4 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.042e-05/0.6054, allocations: 81.77 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.668e-05/0.6054, allocations: 88.95 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.823e-05/0.6055, allocations: 3.984 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.101e-05/0.6055, allocations: 7.938 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.438e-05/0.6055, allocations: 8.031 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-06/0.6055, allocations: 0 / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.939e-05/0.6056, allocations: 120.9 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.11e-07/0.6056, allocations: 0 / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001871/0.6058, allocations: 8 kB / 1.022 GB, free: 13.71 MB / 0.7794 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.0003255/0.6061, allocations: 0.6132 MB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 8.321e-05/0.6062, allocations: 19.94 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.6062, allocations: 0 / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.028e-05/0.6062, allocations: 4 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000151/0.6064, allocations: 8 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001092/0.6075, allocations: 1.327 MB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.6077, allocations: 0.6963 MB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.09e-05/0.6078, allocations: 8.422 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.743e-05/0.6078, allocations: 23.44 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.6078, allocations: 0 / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01714/0.625, allocations: 1.539 MB / 1.026 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.848/7.473, allocations: 13.23 kB / 1.026 GB, free: 9.391 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_ton.fmu > Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches