Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.To_ton,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_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.001238/0.001238, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 194.6 kB / 16.14 MB, free: 6.648 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.26/1.26, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.249/2.249, allocations: 390.2 MB / 0.6643 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 63.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5174/0.5186, allocations: 140.4 MB / 0.949 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001617/0.5202, allocations: 0.8789 MB / 0.9499 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 9.175e-05/0.5203, allocations: 43.75 kB / 0.9499 GB, free: 8.43 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.105e-05/0.5204, allocations: 6.75 kB / 0.95 GB, free: 8.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.411e-05/0.5204, allocations: 3.938 kB / 0.95 GB, free: 8.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.859e-05/0.5205, allocations: 3.938 kB / 0.95 GB, free: 8.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 3.628e-05/0.5205, allocations: 19.92 kB / 0.95 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.685e-05/0.5206, allocations: 53.94 kB / 0.95 GB, free: 8.371 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.5207, allocations: 43.03 kB / 0.9501 GB, free: 8.344 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.161e-05/0.5208, allocations: 20.12 kB / 0.9501 GB, free: 8.332 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.362e-05/0.5208, allocations: 35.89 kB / 0.9501 GB, free: 8.301 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.268e-05/0.5208, allocations: 4.125 kB / 0.9501 GB, free: 8.301 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.596e-06/0.5208, allocations: 4.125 kB / 0.9501 GB, free: 8.301 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.493e-05/0.5209, allocations: 10.69 kB / 0.9501 GB, free: 8.293 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.634e-05/0.5209, allocations: 30.67 kB / 0.9502 GB, free: 8.27 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.715e-05/0.521, allocations: 72.95 kB / 0.9502 GB, free: 8.211 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.521, allocations: 5.375 kB / 0.9502 GB, free: 8.207 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.92e-07/0.521, allocations: 0 / 0.9502 GB, free: 8.207 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.976e-06/0.521, allocations: 0 / 0.9502 GB, free: 8.207 MB / 0.7169 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.0002787/0.5213, allocations: 382.5 kB / 0.9506 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.5213, allocations: 9.625 kB / 0.9506 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.584e-05/0.5213, allocations: 37.5 kB / 0.9507 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.308e-05/0.5214, allocations: 8.969 kB / 0.9507 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.5215, allocations: 195.1 kB / 0.9509 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.448e-06/0.5215, allocations: 7.125 kB / 0.9509 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.5215, allocations: 8.5 kB / 0.9509 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001136/0.5216, allocations: 92.11 kB / 0.951 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.643e-06/0.5217, allocations: 3.938 kB / 0.951 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.5217, allocations: 5.375 kB / 0.951 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.5217, allocations: 2.75 kB / 0.951 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.154e-05/0.5217, allocations: 43.11 kB / 0.951 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003472/0.5221, allocations: 436.5 kB / 0.9514 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.546e-05/0.5221, allocations: 41.41 kB / 0.9515 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.589e-05/0.5222, allocations: 19.22 kB / 0.9515 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.151e-06/0.5222, allocations: 5.375 kB / 0.9515 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.253e-05/0.5222, allocations: 31.94 kB / 0.9515 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.5222, allocations: 0 / 0.9515 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001288/0.5223, allocations: 59.09 kB / 0.9516 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.235e-05/0.5224, allocations: 81.05 kB / 0.9517 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.914e-05/0.5225, allocations: 167.9 kB / 0.9518 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.21e-06/0.5225, allocations: 25.95 kB / 0.9518 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.291e-05/0.5225, allocations: 113.1 kB / 0.9519 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.122e-06/0.5225, allocations: 9.25 kB / 0.952 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-05/0.5226, allocations: 13.06 kB / 0.952 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.486e-05/0.5226, allocations: 321.3 kB / 0.9523 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.416e-05/0.5226, allocations: 7.188 kB / 0.9523 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.699e-05/0.5226, allocations: 18.89 kB / 0.9523 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.138e-05/0.5227, allocations: 33.67 kB / 0.9523 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.5227, allocations: 0 / 0.9523 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.475e-05/0.5227, allocations: 55.11 kB / 0.9524 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.5228, allocations: 9.406 kB / 0.9524 GB, free: 6 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.5228, allocations: 1.344 kB / 0.9524 GB, free: 6 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.937e-06/0.5228, allocations: 0 / 0.9524 GB, free: 6 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.948e-05/0.5228, allocations: 10.02 kB / 0.9524 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.5228, allocations: 1 kB / 0.9524 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.608e-05/0.5229, allocations: 6.344 kB / 0.9524 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.037e-06/0.5229, allocations: 1.25 kB / 0.9524 GB, free: 5.992 MB / 0.7169 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 4.166e-05/0.5229, allocations: 117.8 kB / 0.9525 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.894e-05/0.523, allocations: 12.03 kB / 0.9525 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.755e-05/0.523, allocations: 10.66 kB / 0.9525 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.523, allocations: 0 / 0.9525 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.523, allocations: 1.406 kB / 0.9525 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.523, allocations: 3.984 kB / 0.9525 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002438/0.5233, allocations: 482 kB / 0.953 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.5233, allocations: 1.344 kB / 0.953 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.757e-05/0.5233, allocations: 2.562 kB / 0.953 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.5233, allocations: 1.156 kB / 0.953 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/0.5233, allocations: 1.375 kB / 0.953 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.5233, allocations: 0 / 0.953 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.5233, allocations: 1.219 kB / 0.953 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.294e-05/0.5234, allocations: 81.64 kB / 0.9531 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.479e-05/0.5234, allocations: 92.77 kB / 0.9532 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.5234, allocations: 5.25 kB / 0.9532 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.008e-05/0.5234, allocations: 7.938 kB / 0.9532 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.368e-06/0.5235, allocations: 9.172 kB / 0.9532 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.5235, allocations: 1.281 kB / 0.9532 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.941e-05/0.5235, allocations: 121.7 kB / 0.9533 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5235, allocations: 4.031 kB / 0.9533 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001727/0.5237, allocations: 6.281 kB / 0.9533 GB, free: 5.027 MB / 0.7169 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.0001807/0.5239, allocations: 0.6094 MB / 0.9539 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.012e-05/0.524, allocations: 26.55 kB / 0.954 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.524, allocations: 0 / 0.954 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.656e-06/0.524, allocations: 4.469 kB / 0.954 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001363/0.5241, allocations: 7.531 kB / 0.954 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00074/0.5249, allocations: 1.347 MB / 0.9553 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.133e-05/0.525, allocations: 0.6947 MB / 0.956 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.745e-05/0.525, allocations: 4.812 kB / 0.956 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.126e-05/0.525, allocations: 31.67 kB / 0.956 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of SimCode: time 2.71e-07/0.525, allocations: 0 / 0.956 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.51/3.035, allocations: 1.412 MB / 0.9574 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001532/3.035, allocations: 211.2 kB / 0.9576 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.065/5.101, allocations: 3.938 kB / 0.9576 GB, free: 1.426 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches