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.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, 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.001313/0.001313, allocations: 194.2 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.251/1.251, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.509/2.509, allocations: 461.9 MB / 0.7346 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 64.75 kB / 0.8992 GB, free: 36.88 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2354, allocations: 157.4 MB / 1.053 GB, free: 8.262 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001951/0.2374, allocations: 0.8349 MB / 1.054 GB, free: 7.426 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001145/0.2375, allocations: 35.8 kB / 1.054 GB, free: 7.391 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.509e-05/0.2376, allocations: 0 / 1.054 GB, free: 7.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.942e-05/0.2377, allocations: 15.86 kB / 1.054 GB, free: 7.375 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.735e-05/0.2377, allocations: 7.922 kB / 1.054 GB, free: 7.367 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 4.621e-05/0.2378, allocations: 23.98 kB / 1.054 GB, free: 7.344 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.631e-05/0.2379, allocations: 63.78 kB / 1.054 GB, free: 7.281 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.238, allocations: 43.97 kB / 1.054 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.136e-05/0.2381, allocations: 31.86 kB / 1.054 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.195e-05/0.2381, allocations: 27.8 kB / 1.054 GB, free: 7.18 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.505e-05/0.2381, allocations: 4 kB / 1.054 GB, free: 7.176 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.271e-05/0.2382, allocations: 8 kB / 1.054 GB, free: 7.168 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.823e-05/0.2382, allocations: 15.92 kB / 1.054 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.465e-05/0.2382, allocations: 35.75 kB / 1.054 GB, free: 7.117 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001014/0.2383, allocations: 67.97 kB / 1.054 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2383, allocations: 0 / 1.054 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.354e-06/0.2383, allocations: 4 kB / 1.054 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.055e-06/0.2384, allocations: 3.938 kB / 1.054 GB, free: 7.043 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.0003664/0.2387, allocations: 376.9 kB / 1.054 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.2388, allocations: 12.62 kB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.395e-05/0.2388, allocations: 38.73 kB / 1.054 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.685e-05/0.2388, allocations: 12.84 kB / 1.055 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001655/0.239, allocations: 188.2 kB / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.239, allocations: 8.281 kB / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.062e-05/0.2391, allocations: 8.375 kB / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001378/0.2392, allocations: 105.6 kB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.036e-06/0.2392, allocations: 7.875 kB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.2392, allocations: 0 / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.2392, allocations: 0 / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.446e-05/0.2393, allocations: 39.92 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004693/0.2398, allocations: 436.6 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.898e-05/0.2398, allocations: 37.25 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.241e-05/0.2399, allocations: 25.77 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.216e-06/0.2399, allocations: 0 / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.2399, allocations: 42.56 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 8.21e-07/0.2399, allocations: 0 / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001553/0.2401, allocations: 57.48 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/0.2401, allocations: 77.11 kB / 1.055 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.2403, allocations: 162.2 kB / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.004e-05/0.2403, allocations: 25.7 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.111e-05/0.2403, allocations: 100 kB / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.013e-06/0.2404, allocations: 3.906 kB / 1.056 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.152e-05/0.2404, allocations: 21.97 kB / 1.056 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.301e-05/0.2405, allocations: 322.8 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.498e-05/0.2405, allocations: 4 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.238e-05/0.2405, allocations: 21.7 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.728e-05/0.2406, allocations: 25.66 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.2406, allocations: 0 / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.987e-05/0.2407, allocations: 69.53 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.2407, allocations: 11.88 kB / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.2407, allocations: 0 / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.2407, allocations: 0 / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.543e-05/0.2408, allocations: 8 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.648e-06/0.2408, allocations: 0 / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.093e-05/0.2408, allocations: 7.844 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-06/0.2408, allocations: 4 kB / 1.056 GB, free: 4.559 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.389e-05/0.2409, allocations: 117.9 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.343e-05/0.2409, allocations: 11.84 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.041e-05/0.241, allocations: 11.86 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.241, allocations: 4 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.241, allocations: 0 / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.241, allocations: 3.938 kB / 1.056 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003189/0.2413, allocations: 466.8 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2413, allocations: 4.062 kB / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.909e-05/0.2413, allocations: 4 kB / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.2413, allocations: 0 / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.16e-06/0.2414, allocations: 0 / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2414, allocations: 0 / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2414, allocations: 4 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.952e-05/0.2414, allocations: 85.77 kB / 1.057 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.991e-05/0.2415, allocations: 93.03 kB / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.227e-05/0.2415, allocations: 0 / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.762e-05/0.2415, allocations: 0 / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.157e-05/0.2416, allocations: 4 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-06/0.2416, allocations: 4 kB / 1.057 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.706e-05/0.2416, allocations: 122.1 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2416, allocations: 0 / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001806/0.2418, allocations: 4 kB / 1.057 GB, free: 3.527 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.0002937/0.2421, allocations: 0.6209 MB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 7.263e-05/0.2422, allocations: 16 kB / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2422, allocations: 0 / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.113e-05/0.2422, allocations: 8.156 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001431/0.2424, allocations: 8.062 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009882/0.2434, allocations: 1.33 MB / 1.059 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001866/0.2436, allocations: 0.6924 MB / 1.06 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.08e-05/0.2436, allocations: 12.5 kB / 1.06 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.874e-05/0.2437, allocations: 23.38 kB / 1.06 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of SimCode: time 3.5e-07/0.2437, allocations: 0 / 1.06 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01607/0.2597, allocations: 1.547 MB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.831/7.09, allocations: 18.88 kB / 1.061 GB, free: 15.19 MB / 0.8262 GB (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 --timeout=50 --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) 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) Reference file matches