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.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.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.0009017/0.0009016, allocations: 90.36 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.00568/0.00568, allocations: 172.1 kB / 16.26 MB, free: 6.613 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.28/1.28, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.529/2.529, allocations: 462.6 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003155/0.0003155, allocations: 12.38 kB / 0.9029 GB, free: 36.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2461, allocations: 159.6 MB / 1.059 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.0009941/0.2472, allocations: 0.5492 MB / 1.059 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001019/0.2473, allocations: 35.78 kB / 1.059 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.146e-05/0.2473, allocations: 4 kB / 1.059 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.079e-05/0.2474, allocations: 3.938 kB / 1.059 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.67e-05/0.2474, allocations: 11.92 kB / 1.059 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 3.675e-05/0.2475, allocations: 12 kB / 1.059 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.083e-05/0.2476, allocations: 55.84 kB / 1.059 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.2477, allocations: 39.97 kB / 1.059 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.399e-05/0.2477, allocations: 15.86 kB / 1.059 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.601e-05/0.2478, allocations: 15.88 kB / 1.06 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.119e-05/0.2478, allocations: 4 kB / 1.06 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.151e-06/0.2478, allocations: 4 kB / 1.06 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.77e-05/0.2478, allocations: 23.8 kB / 1.06 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.744e-05/0.2479, allocations: 49.45 kB / 1.06 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.168e-05/0.248, allocations: 67.97 kB / 1.06 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.248, allocations: 4 kB / 1.06 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.192e-06/0.248, allocations: 0 / 1.06 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.186e-06/0.248, allocations: 0 / 1.06 GB, free: 3.973 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.0003201/0.2483, allocations: 363.3 kB / 1.06 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.2484, allocations: 15.97 kB / 1.06 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.049e-05/0.2484, allocations: 38.75 kB / 1.06 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.211e-05/0.2484, allocations: 8.844 kB / 1.06 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001698/0.2486, allocations: 204.1 kB / 1.06 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.2486, allocations: 4.375 kB / 1.06 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.863e-05/0.2486, allocations: 12.31 kB / 1.06 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001302/0.2488, allocations: 83.95 kB / 1.06 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.2488, allocations: 3.938 kB / 1.06 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.2488, allocations: 8 kB / 1.06 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.2488, allocations: 4 kB / 1.06 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.043e-05/0.2489, allocations: 39.92 kB / 1.06 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004672/0.2494, allocations: 436.6 kB / 1.061 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.17e-05/0.2494, allocations: 41.19 kB / 1.061 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.356e-05/0.2495, allocations: 21.84 kB / 1.061 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.935e-06/0.2495, allocations: 3.984 kB / 1.061 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.985e-05/0.2495, allocations: 30.56 kB / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.143e-06/0.2495, allocations: 0 / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001654/0.2497, allocations: 69.66 kB / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/0.2497, allocations: 77.11 kB / 1.061 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.2499, allocations: 163.6 kB / 1.061 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.133e-05/0.2499, allocations: 25.7 kB / 1.061 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.839e-05/0.25, allocations: 107.9 kB / 1.061 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.791e-06/0.25, allocations: 0 / 1.061 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-05/0.25, allocations: 13.72 kB / 1.061 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.4e-05/0.2501, allocations: 318.8 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.662e-05/0.2501, allocations: 12.06 kB / 1.062 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.142e-05/0.2501, allocations: 17.66 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.754e-05/0.2502, allocations: 25.72 kB / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2502, allocations: 4 kB / 1.062 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.502e-05/0.2503, allocations: 57.53 kB / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.2503, allocations: 9.344 kB / 1.062 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.2503, allocations: 4.062 kB / 1.062 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.2503, allocations: 4 kB / 1.062 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.637e-05/0.2504, allocations: 7.938 kB / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.2504, allocations: 0 / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.381e-05/0.2504, allocations: 11.84 kB / 1.062 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-06/0.2504, allocations: 0 / 1.062 GB, free: 1.5 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.988e-05/0.2505, allocations: 117.8 kB / 1.062 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.729e-05/0.2506, allocations: 11.84 kB / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.097e-05/0.2506, allocations: 11.88 kB / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.2506, allocations: 7.938 kB / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.2506, allocations: 0 / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.2506, allocations: 0 / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003222/0.2509, allocations: 470.8 kB / 1.062 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.251, allocations: 0 / 1.062 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.111e-05/0.251, allocations: 7.984 kB / 1.062 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.251, allocations: 3.938 kB / 1.062 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.251, allocations: 8.062 kB / 1.062 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.251, allocations: 4 kB / 1.062 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.251, allocations: 0 / 1.062 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.966e-05/0.2511, allocations: 73.84 kB / 1.062 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.44e-05/0.2511, allocations: 96.91 kB / 1.063 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.142e-05/0.2512, allocations: 0 / 1.063 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.94e-05/0.2512, allocations: 0 / 1.063 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.046e-05/0.2512, allocations: 8.031 kB / 1.063 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-06/0.2512, allocations: 0 / 1.063 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.463e-05/0.2513, allocations: 122.1 kB / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2513, allocations: 0 / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001779/0.2515, allocations: 8 kB / 1.063 GB, free: 468 kB / 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.0003042/0.2518, allocations: 0.617 MB / 1.063 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.05e-05/0.2519, allocations: 23.92 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2519, allocations: 0 / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.758e-06/0.2519, allocations: 4 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001496/0.252, allocations: 10.39 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009844/0.253, allocations: 1.339 MB / 1.065 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000197/0.2532, allocations: 0.7004 MB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.77e-05/0.2533, allocations: 4.438 kB / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.947e-05/0.2533, allocations: 27.42 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2533, allocations: 0 / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01136/0.2647, allocations: 1.362 MB / 1.067 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001661/0.2649, allocations: 214.8 kB / 1.067 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.518/1.783, allocations: 0 / 1.067 GB, free: 12.1 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