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.0009016/0.0009017, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005356/0.005356, allocations: 173.2 kB / 16.26 MB, free: 6.676 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.276/1.276, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.528/2.528, allocations: 462.7 MB / 0.7364 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000308/0.000308, allocations: 12.69 kB / 0.9029 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2593, allocations: 159.6 MB / 1.059 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.0009153/0.2603, allocations: 0.5492 MB / 1.059 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001038/0.2604, allocations: 35.8 kB / 1.059 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.745e-05/0.2605, allocations: 8 kB / 1.059 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.914e-05/0.2605, allocations: 3.938 kB / 1.059 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.525e-05/0.2606, allocations: 7.922 kB / 1.059 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 5.054e-05/0.2606, allocations: 16 kB / 1.059 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.595e-05/0.2607, allocations: 59.83 kB / 1.059 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.2609, allocations: 35.97 kB / 1.059 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.067e-05/0.2609, allocations: 23.86 kB / 1.059 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.983e-05/0.261, allocations: 15.88 kB / 1.06 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.453e-05/0.261, allocations: 0 / 1.06 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.342e-06/0.261, allocations: 0 / 1.06 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.769e-05/0.261, allocations: 15.86 kB / 1.06 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.485e-05/0.2611, allocations: 53.45 kB / 1.06 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.675e-05/0.2612, allocations: 63.97 kB / 1.06 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.2612, allocations: 4 kB / 1.06 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.302e-06/0.2612, allocations: 0 / 1.06 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.075e-06/0.2612, allocations: 4 kB / 1.06 GB, free: 4.02 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.0003334/0.2615, allocations: 367.3 kB / 1.06 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.2616, allocations: 15.97 kB / 1.06 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.041e-05/0.2616, allocations: 38.73 kB / 1.06 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.212e-05/0.2616, allocations: 8.844 kB / 1.06 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001749/0.2618, allocations: 196.1 kB / 1.06 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.988e-06/0.2618, allocations: 8.375 kB / 1.06 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.969e-06/0.2619, allocations: 4.375 kB / 1.06 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001382/0.262, allocations: 91.95 kB / 1.06 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.262, allocations: 3.938 kB / 1.06 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.306e-06/0.262, allocations: 7.938 kB / 1.06 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.262, allocations: 0 / 1.06 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.608e-05/0.2621, allocations: 39.92 kB / 1.06 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004921/0.2626, allocations: 448.5 kB / 1.061 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.805e-05/0.2627, allocations: 37.31 kB / 1.061 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.03e-05/0.2628, allocations: 25.72 kB / 1.061 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.244e-06/0.2628, allocations: 0 / 1.061 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.659e-05/0.2628, allocations: 34.56 kB / 1.061 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.2628, allocations: 4 kB / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001868/0.263, allocations: 57.47 kB / 1.061 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.886e-05/0.2631, allocations: 77.11 kB / 1.061 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.2632, allocations: 168.4 kB / 1.061 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.2633, allocations: 25.7 kB / 1.061 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.344e-05/0.2633, allocations: 108.2 kB / 1.061 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 8.887e-06/0.2634, allocations: 4 kB / 1.061 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.641e-05/0.2634, allocations: 13.72 kB / 1.061 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.2635, allocations: 318.8 kB / 1.062 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.712e-05/0.2635, allocations: 4 kB / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.183e-05/0.2636, allocations: 21.66 kB / 1.062 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.517e-05/0.2636, allocations: 29.72 kB / 1.062 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2636, allocations: 0 / 1.062 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.759e-05/0.2637, allocations: 61.53 kB / 1.062 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.2637, allocations: 7.938 kB / 1.062 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.2637, allocations: 0 / 1.062 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.2638, allocations: 4 kB / 1.062 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.452e-05/0.2638, allocations: 4 kB / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.2638, allocations: 0 / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.486e-05/0.2639, allocations: 11.84 kB / 1.062 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.2639, allocations: 0 / 1.062 GB, free: 1.547 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 8.614e-05/0.264, allocations: 121.9 kB / 1.062 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.762e-05/0.264, allocations: 11.84 kB / 1.062 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.578e-05/0.2641, allocations: 11.88 kB / 1.062 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2641, allocations: 0 / 1.062 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2641, allocations: 0 / 1.062 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2641, allocations: 0 / 1.062 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003676/0.2645, allocations: 474.7 kB / 1.062 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2645, allocations: 0 / 1.062 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.058e-05/0.2645, allocations: 11.92 kB / 1.062 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.2645, allocations: 0 / 1.062 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.2645, allocations: 4 kB / 1.062 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2645, allocations: 0 / 1.062 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.2645, allocations: 0 / 1.062 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.672e-05/0.2646, allocations: 81.91 kB / 1.062 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.151e-05/0.2647, allocations: 92.91 kB / 1.063 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.2647, allocations: 0 / 1.063 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.938e-05/0.2647, allocations: 3.938 kB / 1.063 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.384e-05/0.2647, allocations: 8 kB / 1.063 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-06/0.2647, allocations: 96 / 1.063 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.557e-05/0.2648, allocations: 122.1 kB / 1.063 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2648, allocations: 0 / 1.063 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001908/0.265, allocations: 8 kB / 1.063 GB, free: 0.5039 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.0003807/0.2654, allocations: 0.6171 MB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 8.614e-05/0.2655, allocations: 23.92 kB / 1.063 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2655, allocations: 160 / 1.063 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.053e-05/0.2656, allocations: 8 kB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001701/0.2657, allocations: 11.98 kB / 1.063 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.267, allocations: 1.338 MB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/0.2672, allocations: 0.6965 MB / 1.065 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.365e-05/0.2673, allocations: 8.375 kB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.916e-05/0.2673, allocations: 27.42 kB / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of SimCode: time 4.01e-07/0.2673, allocations: 0 / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01605/0.2834, allocations: 1.363 MB / 1.067 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001805/0.2836, allocations: 213.6 kB / 1.067 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.518/1.802, allocations: 1 kB / 1.067 GB, free: 12.14 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