Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_latest_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.001197/0.001197, 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.001186/0.001186, allocations: 195 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.194/1.194, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.371/2.371, allocations: 461.9 MB / 0.7342 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 63.52 kB / 0.8985 GB, free: 36.91 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2229/0.2241, allocations: 157.4 MB / 1.052 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.001808/0.2259, allocations: 0.8842 MB / 1.053 GB, free: 7.328 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 8.653e-05/0.226, allocations: 39.8 kB / 1.053 GB, free: 7.289 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.233e-05/0.2261, allocations: 0 / 1.053 GB, free: 7.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.505e-05/0.2261, allocations: 3.938 kB / 1.053 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.592e-05/0.2262, allocations: 7.922 kB / 1.053 GB, free: 7.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 4.308e-05/0.2262, allocations: 19.98 kB / 1.053 GB, free: 7.258 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.377e-05/0.2263, allocations: 55.84 kB / 1.053 GB, free: 7.203 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.2264, allocations: 47.97 kB / 1.053 GB, free: 7.156 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.825e-05/0.2265, allocations: 19.81 kB / 1.053 GB, free: 7.137 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.873e-05/0.2265, allocations: 27.84 kB / 1.053 GB, free: 7.109 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.196e-05/0.2265, allocations: 4 kB / 1.053 GB, free: 7.105 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.284e-06/0.2265, allocations: 4 kB / 1.053 GB, free: 7.102 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.488e-05/0.2266, allocations: 11.94 kB / 1.053 GB, free: 7.09 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.444e-05/0.2266, allocations: 39.73 kB / 1.053 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.029e-05/0.2267, allocations: 71.98 kB / 1.053 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2267, allocations: 0 / 1.053 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.011e-06/0.2267, allocations: 0 / 1.053 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.2267, allocations: 0 / 1.053 GB, free: 6.98 MB / 0.8106 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.0003331/0.227, allocations: 379.3 kB / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.2271, allocations: 11.97 kB / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.273e-05/0.2271, allocations: 38.75 kB / 1.054 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.671e-05/0.2272, allocations: 8.844 kB / 1.054 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001604/0.2273, allocations: 196.1 kB / 1.054 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.2273, allocations: 12.28 kB / 1.054 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.2274, allocations: 8.375 kB / 1.054 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001263/0.2275, allocations: 89.36 kB / 1.054 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.2275, allocations: 11.81 kB / 1.054 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.156e-06/0.2275, allocations: 0 / 1.054 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.2275, allocations: 4 kB / 1.054 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.403e-05/0.2276, allocations: 35.98 kB / 1.054 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004223/0.228, allocations: 444.6 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.562e-05/0.2281, allocations: 37.22 kB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.091e-05/0.2281, allocations: 17.78 kB / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.254e-06/0.2281, allocations: 4 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.66e-05/0.2281, allocations: 38.5 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.2281, allocations: 0 / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001404/0.2283, allocations: 53.53 kB / 1.055 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.259e-05/0.2283, allocations: 81.05 kB / 1.055 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.2285, allocations: 169.9 kB / 1.055 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.2285, allocations: 29.7 kB / 1.055 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.741e-05/0.2285, allocations: 100 kB / 1.055 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.765e-06/0.2285, allocations: 11.91 kB / 1.055 GB, free: 5 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.203e-05/0.2286, allocations: 13.72 kB / 1.055 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.117e-05/0.2287, allocations: 318.8 kB / 1.055 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.648e-05/0.2287, allocations: 8 kB / 1.055 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.923e-05/0.2287, allocations: 13.72 kB / 1.055 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.782e-05/0.2287, allocations: 33.7 kB / 1.055 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.2288, allocations: 7.938 kB / 1.055 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.067e-05/0.2288, allocations: 49.61 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.2288, allocations: 7.938 kB / 1.056 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-06/0.2289, allocations: 0 / 1.056 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.998e-06/0.2289, allocations: 4 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.17e-05/0.2289, allocations: 4 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/0.2289, allocations: 11.91 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.909e-05/0.229, allocations: 15.91 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.457e-06/0.229, allocations: 0 / 1.056 GB, free: 4.488 MB / 0.8106 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.024e-05/0.229, allocations: 113.8 kB / 1.056 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.122e-05/0.2291, allocations: 11.84 kB / 1.056 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.941e-05/0.2291, allocations: 15.91 kB / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2291, allocations: 3.984 kB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2291, allocations: 0 / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.2291, allocations: 7.922 kB / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003054/0.2294, allocations: 474.8 kB / 1.056 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.2295, allocations: 4 kB / 1.056 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.767e-05/0.2295, allocations: 4 kB / 1.056 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.2295, allocations: 0 / 1.056 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.2295, allocations: 4 kB / 1.056 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.2295, allocations: 0 / 1.056 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2295, allocations: 0 / 1.056 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.79e-05/0.2296, allocations: 85.83 kB / 1.056 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.984e-05/0.2296, allocations: 89.02 kB / 1.056 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.2296, allocations: 0 / 1.056 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.926e-05/0.2297, allocations: 0 / 1.056 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.366e-05/0.2297, allocations: 7.984 kB / 1.056 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-06/0.2297, allocations: 0 / 1.056 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.848e-05/0.2298, allocations: 115.3 kB / 1.056 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2298, allocations: 4.031 kB / 1.056 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001739/0.2299, allocations: 8 kB / 1.056 GB, free: 3.445 MB / 0.8106 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.0002791/0.2302, allocations: 0.6093 MB / 1.057 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 6.15e-05/0.2303, allocations: 27.95 kB / 1.057 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2303, allocations: 0 / 1.057 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.788e-06/0.2303, allocations: 4 kB / 1.057 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001409/0.2305, allocations: 11.94 kB / 1.057 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009383/0.2314, allocations: 1.346 MB / 1.058 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001798/0.2316, allocations: 0.6926 MB / 1.059 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.913e-05/0.2316, allocations: 8.438 kB / 1.059 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.182e-05/0.2317, allocations: 27.42 kB / 1.059 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of SimCode: time 4.01e-07/0.2317, allocations: 0 / 1.059 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04221/0.2739, allocations: 1.416 MB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001617/0.2741, allocations: 222.6 kB / 1.061 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.522/1.796, allocations: 0 / 1.061 GB, free: 15.01 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_ton.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches