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.001131/0.001131, 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.001191/0.001191, allocations: 193.4 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.329/1.329, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.76/2.76, allocations: 469.4 MB / 0.742 GB, free: 7.703 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 63.27 kB / 0.9083 GB, free: 34.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2514, allocations: 159.1 MB / 1.064 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002099/0.2536, allocations: 0.8351 MB / 1.064 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0001125/0.2537, allocations: 35.8 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.038e-05/0.2537, allocations: 4 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.925e-05/0.2538, allocations: 3.938 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.26e-05/0.2539, allocations: 11.88 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 4.791e-05/0.2539, allocations: 27.91 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.443e-05/0.254, allocations: 67.78 kB / 1.065 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.2542, allocations: 43.95 kB / 1.065 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.413e-05/0.2542, allocations: 27.88 kB / 1.065 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.581e-05/0.2543, allocations: 27.84 kB / 1.065 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.807e-05/0.2543, allocations: 8 kB / 1.065 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.528e-06/0.2543, allocations: 4 kB / 1.065 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.992e-05/0.2544, allocations: 15.94 kB / 1.065 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.678e-05/0.2544, allocations: 35.73 kB / 1.065 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001059/0.2545, allocations: 71.98 kB / 1.065 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2545, allocations: 0 / 1.065 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.322e-06/0.2545, allocations: 0 / 1.065 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.2545, allocations: 0 / 1.065 GB, free: 13.27 MB / 0.8262 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.00037/0.2549, allocations: 375.3 kB / 1.065 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.255, allocations: 8.031 kB / 1.065 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.825e-05/0.255, allocations: 42.69 kB / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.895e-05/0.255, allocations: 12.75 kB / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001806/0.2552, allocations: 192.2 kB / 1.065 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.2552, allocations: 4.375 kB / 1.065 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.682e-05/0.2553, allocations: 12.38 kB / 1.065 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001482/0.2554, allocations: 91.83 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.2554, allocations: 7.938 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.2554, allocations: 4 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.2555, allocations: 4 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.248e-05/0.2555, allocations: 31.98 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000489/0.256, allocations: 444.5 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 5.236e-05/0.2561, allocations: 37.22 kB / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.27e-05/0.2561, allocations: 17.78 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.217e-05/0.2562, allocations: 8.031 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.021e-05/0.2562, allocations: 30.56 kB / 1.066 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.443e-06/0.2562, allocations: 4 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0001588/0.2564, allocations: 57.47 kB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.2564, allocations: 81.11 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.2565, allocations: 161 kB / 1.066 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/0.2566, allocations: 25.7 kB / 1.066 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.461e-05/0.2566, allocations: 108 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.114e-06/0.2566, allocations: 3.906 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.125e-05/0.2567, allocations: 13.97 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.907e-05/0.2568, allocations: 322.8 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.756e-05/0.2568, allocations: 11.94 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.352e-05/0.2568, allocations: 17.72 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.939e-05/0.2569, allocations: 29.66 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2569, allocations: 0 / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.994e-05/0.2569, allocations: 57.59 kB / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.257, allocations: 7.938 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.257, allocations: 4 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.257, allocations: 0 / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.29e-05/0.2571, allocations: 12.03 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.2571, allocations: 3.984 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.373e-05/0.2571, allocations: 15.84 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.2571, allocations: 3.984 kB / 1.067 GB, free: 10.78 MB / 0.8262 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.928e-05/0.2572, allocations: 113.9 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.51e-05/0.2572, allocations: 15.84 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.996e-05/0.2573, allocations: 7.875 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.2573, allocations: 0 / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2573, allocations: 3.938 kB / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.2573, allocations: 0 / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003427/0.2576, allocations: 474.8 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2577, allocations: 0 / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.926e-05/0.2577, allocations: 8.062 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2577, allocations: 0 / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.58e-06/0.2577, allocations: 4 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.2577, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2577, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.951e-05/0.2578, allocations: 87.53 kB / 1.068 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.288e-05/0.2578, allocations: 85.05 kB / 1.068 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.313e-05/0.2579, allocations: 4 kB / 1.068 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.072e-05/0.2579, allocations: 0 / 1.068 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.303e-05/0.2579, allocations: 4 kB / 1.068 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-06/0.2579, allocations: 0 / 1.068 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.202e-05/0.258, allocations: 119.2 kB / 1.068 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.01e-07/0.258, allocations: 0 / 1.068 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001956/0.2582, allocations: 12 kB / 1.068 GB, free: 9.75 MB / 0.8262 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.0003447/0.2586, allocations: 0.6175 MB / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 8.224e-05/0.2587, allocations: 19.98 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.2587, allocations: 0 / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.304e-05/0.2587, allocations: 11.94 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001579/0.2588, allocations: 14 kB / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.2599, allocations: 1.315 MB / 1.07 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001935/0.2601, allocations: 0.6928 MB / 1.071 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.963e-05/0.2602, allocations: 8.375 kB / 1.071 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.34e-05/0.2602, allocations: 27.42 kB / 1.071 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.2602, allocations: 0 / 1.071 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01561/0.2758, allocations: 1.553 MB / 1.072 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.078/7.353, allocations: 11.31 kB / 1.072 GB, free: 5.422 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 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.csv","/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