Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.To_ton,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_10_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.005095/0.005095, allocations: 99.58 kB / 15.73 MB, free: 6.039 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.001379/0.001379, allocations: 192.1 kB / 16.67 MB, free: 5.961 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.268/1.268, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.373/2.373, allocations: 437.1 MB / 0.7106 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001818, allocations: 67.89 kB / 1.018 GB, free: 9.879 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6588/0.6607, allocations: 151.6 MB / 1.166 GB, free: 3.766 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001915/0.6626, allocations: 0.8407 MB / 1.167 GB, free: 2.926 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0001048/0.6627, allocations: 43.78 kB / 1.167 GB, free: 2.883 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.209e-05/0.6628, allocations: 0 / 1.167 GB, free: 2.883 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.448e-05/0.6628, allocations: 3.938 kB / 1.167 GB, free: 2.879 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.093e-05/0.6629, allocations: 11.86 kB / 1.167 GB, free: 2.867 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 4.537e-05/0.663, allocations: 19.98 kB / 1.167 GB, free: 2.848 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.6631, allocations: 67.83 kB / 1.167 GB, free: 2.781 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.6632, allocations: 43.92 kB / 1.167 GB, free: 2.738 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.153e-05/0.6633, allocations: 23.86 kB / 1.167 GB, free: 2.715 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.068e-05/0.6633, allocations: 27.86 kB / 1.167 GB, free: 2.688 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.869e-05/0.6633, allocations: 4 kB / 1.167 GB, free: 2.684 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 9.016e-06/0.6634, allocations: 8 kB / 1.167 GB, free: 2.676 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.217e-05/0.6634, allocations: 19.92 kB / 1.167 GB, free: 2.656 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.812e-05/0.6634, allocations: 31.8 kB / 1.167 GB, free: 2.625 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001184/0.6635, allocations: 79.3 kB / 1.167 GB, free: 2.551 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.6636, allocations: 0 / 1.167 GB, free: 2.551 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6636, allocations: 0 / 1.167 GB, free: 2.551 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.674e-06/0.6636, allocations: 0 / 1.167 GB, free: 2.551 MB / 0.8887 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.0004203/0.664, allocations: 383.1 kB / 1.168 GB, free: 2.125 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.664, allocations: 12.91 kB / 1.168 GB, free: 2.113 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.838e-05/0.6641, allocations: 42.69 kB / 1.168 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.708e-05/0.6641, allocations: 12.84 kB / 1.168 GB, free: 2.051 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002137/0.6643, allocations: 200.1 kB / 1.168 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.6644, allocations: 4.375 kB / 1.168 GB, free: 1.812 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.729e-05/0.6644, allocations: 8.375 kB / 1.168 GB, free: 1.805 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001492/0.6645, allocations: 92.89 kB / 1.168 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.6645, allocations: 7.938 kB / 1.168 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.6646, allocations: 3.938 kB / 1.168 GB, free: 1.695 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.6646, allocations: 4 kB / 1.168 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.807e-05/0.6647, allocations: 39.92 kB / 1.168 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000526/0.6652, allocations: 432.7 kB / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 6.431e-05/0.6653, allocations: 53.23 kB / 1.169 GB, free: 1.105 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.703e-05/0.6653, allocations: 17.78 kB / 1.169 GB, free: 1.082 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 6.292e-06/0.6653, allocations: 0 / 1.169 GB, free: 1.082 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.6653, allocations: 34.56 kB / 1.169 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 9.21e-07/0.6654, allocations: 0 / 1.169 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0001614/0.6655, allocations: 61.61 kB / 1.169 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.072e-05/0.6656, allocations: 81.09 kB / 1.169 GB, free: 0.875 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.6657, allocations: 156.3 kB / 1.169 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.6657, allocations: 25.7 kB / 1.169 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 6.16e-05/0.6658, allocations: 100.1 kB / 1.169 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.042e-05/0.6658, allocations: 7.953 kB / 1.169 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.639e-05/0.6659, allocations: 21.7 kB / 1.169 GB, free: 0.5469 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.666, allocations: 315 kB / 1.169 GB, free: 236 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.869e-05/0.666, allocations: 11.98 kB / 1.169 GB, free: 224 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.346e-05/0.6661, allocations: 21.66 kB / 1.169 GB, free: 196 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.109e-05/0.6661, allocations: 25.72 kB / 1.169 GB, free: 164 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.6661, allocations: 0 / 1.169 GB, free: 164 kB / 0.8887 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.379e-05/0.6662, allocations: 65.53 kB / 1.17 GB, free: 92 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.6662, allocations: 8 kB / 1.17 GB, free: 84 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.6662, allocations: 4 kB / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.6663, allocations: 4 kB / 1.17 GB, free: 76 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.394e-05/0.6663, allocations: 7.938 kB / 1.17 GB, free: 68 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.6663, allocations: 0 / 1.17 GB, free: 68 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.063e-05/0.6664, allocations: 7.938 kB / 1.17 GB, free: 60 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.867e-06/0.6664, allocations: 0 / 1.17 GB, free: 60 kB / 0.8887 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.797e-05/0.6665, allocations: 113.8 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.299e-05/0.6665, allocations: 15.88 kB / 1.17 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.041e-05/0.6665, allocations: 15.88 kB / 1.17 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.6666, allocations: 0 / 1.17 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.6666, allocations: 0 / 1.17 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-06/0.6666, allocations: 0 / 1.17 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004009/0.667, allocations: 474.7 kB / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.667, allocations: 0 / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.128e-05/0.667, allocations: 7.938 kB / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.667, allocations: 4 kB / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.667, allocations: 8.062 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.667, allocations: 7.922 kB / 1.17 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.667, allocations: 0 / 1.17 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.416e-05/0.6671, allocations: 73.89 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.045e-05/0.6672, allocations: 93.05 kB / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.219e-05/0.6672, allocations: 0 / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.134e-05/0.6672, allocations: 4.031 kB / 1.17 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.048e-05/0.6673, allocations: 4 kB / 1.17 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-06/0.6673, allocations: 0 / 1.17 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.223e-05/0.6674, allocations: 120.5 kB / 1.17 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6674, allocations: 0 / 1.17 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0001911/0.6676, allocations: 8 kB / 1.17 GB, free: 15.01 MB / 0.9044 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.0003878/0.668, allocations: 0.6171 MB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 8.31e-05/0.668, allocations: 19.94 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.6681, allocations: 0 / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.208e-05/0.6681, allocations: 7.984 kB / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001473/0.6682, allocations: 8 kB / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.6695, allocations: 1.344 MB / 1.172 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.6698, allocations: 0.6889 MB / 1.173 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.063e-05/0.6698, allocations: 8.422 kB / 1.173 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.29e-05/0.6698, allocations: 19.44 kB / 1.173 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of SimCode: time 2.61e-07/0.6698, allocations: 7.938 kB / 1.173 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6394/1.309, allocations: 1.586 MB / 1.175 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/12.19, allocations: 9.234 kB / 1.175 GB, free: 10.64 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches