Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: translateModel(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton") translateModel(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001573/0.001573, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.363/1.363, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.31/2.31, allocations: 390.3 MB / 0.6653 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 72.88 kB / 0.8132 GB, free: 32.93 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2412, allocations: 140.4 MB / 0.9503 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002163/0.2434, allocations: 0.8291 MB / 0.9511 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0001346/0.2435, allocations: 39.78 kB / 0.9511 GB, free: 8.016 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.502e-05/0.2436, allocations: 4 kB / 0.9511 GB, free: 8.012 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.327e-05/0.2436, allocations: 11.86 kB / 0.9511 GB, free: 8 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.21e-05/0.2438, allocations: 11.88 kB / 0.9511 GB, free: 7.988 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 5.259e-05/0.2438, allocations: 15.98 kB / 0.9512 GB, free: 7.973 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.2439, allocations: 63.84 kB / 0.9512 GB, free: 7.91 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.2441, allocations: 43.95 kB / 0.9513 GB, free: 7.867 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.083e-05/0.2442, allocations: 27.86 kB / 0.9513 GB, free: 7.84 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.265e-05/0.2442, allocations: 27.8 kB / 0.9513 GB, free: 7.812 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.137e-05/0.2443, allocations: 8 kB / 0.9513 GB, free: 7.805 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.009e-05/0.2443, allocations: 4 kB / 0.9513 GB, free: 7.801 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.574e-05/0.2443, allocations: 15.92 kB / 0.9513 GB, free: 7.785 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.305e-05/0.2444, allocations: 31.81 kB / 0.9514 GB, free: 7.754 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001197/0.2445, allocations: 79.97 kB / 0.9514 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2445, allocations: 0 / 0.9514 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.994e-06/0.2445, allocations: 0 / 0.9514 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.045e-05/0.2445, allocations: 0 / 0.9514 GB, free: 7.676 MB / 0.7325 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.0004143/0.2449, allocations: 375.2 kB / 0.9518 GB, free: 7.258 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.245, allocations: 8.031 kB / 0.9518 GB, free: 7.25 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.696e-05/0.245, allocations: 8.844 kB / 0.9518 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002165/0.2453, allocations: 200.1 kB / 0.952 GB, free: 7.008 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.2453, allocations: 4.375 kB / 0.952 GB, free: 7.004 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.477e-05/0.2453, allocations: 8.375 kB / 0.952 GB, free: 6.996 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001487/0.2454, allocations: 91.86 kB / 0.9521 GB, free: 6.895 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.2455, allocations: 192 / 0.9521 GB, free: 6.895 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.2455, allocations: 7.938 kB / 0.9521 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.2455, allocations: 7.938 kB / 0.9521 GB, free: 6.879 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.626e-05/0.2456, allocations: 35.92 kB / 0.9522 GB, free: 6.844 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005242/0.2461, allocations: 440.7 kB / 0.9526 GB, free: 6.359 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 5.775e-05/0.2462, allocations: 37.25 kB / 0.9526 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.698e-05/0.2462, allocations: 21.78 kB / 0.9526 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.2462, allocations: 4 kB / 0.9526 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.2463, allocations: 30.56 kB / 0.9527 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.312e-06/0.2463, allocations: 3.938 kB / 0.9527 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0001717/0.2464, allocations: 57.47 kB / 0.9527 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.2465, allocations: 81.11 kB / 0.9528 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.2466, allocations: 167.8 kB / 0.953 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.2467, allocations: 29.7 kB / 0.953 GB, free: 5.863 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.851e-05/0.2467, allocations: 104 kB / 0.9531 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.008e-05/0.2467, allocations: 7.906 kB / 0.9531 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.135e-05/0.2468, allocations: 13.72 kB / 0.9531 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.2469, allocations: 318.8 kB / 0.9534 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.908e-05/0.2469, allocations: 11.94 kB / 0.9534 GB, free: 5.398 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.246e-05/0.2469, allocations: 13.72 kB / 0.9534 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.192e-05/0.247, allocations: 33.72 kB / 0.9535 GB, free: 5.34 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.247, allocations: 4 kB / 0.9535 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.445e-05/0.2471, allocations: 57.53 kB / 0.9535 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.2471, allocations: 4 kB / 0.9535 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2471, allocations: 7.938 kB / 0.9535 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.2471, allocations: 96 / 0.9535 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.995e-05/0.2472, allocations: 4 kB / 0.9536 GB, free: 5.258 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.2472, allocations: 4.062 kB / 0.9536 GB, free: 5.254 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.634e-05/0.2473, allocations: 15.83 kB / 0.9536 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.714e-06/0.2473, allocations: 7.984 kB / 0.9536 GB, free: 5.23 MB / 0.7325 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 7.552e-05/0.2473, allocations: 109.8 kB / 0.9537 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.547e-05/0.2474, allocations: 7.906 kB / 0.9537 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.509e-05/0.2474, allocations: 15.81 kB / 0.9537 GB, free: 5.09 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.2474, allocations: 0 / 0.9537 GB, free: 5.09 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2474, allocations: 0 / 0.9537 GB, free: 5.09 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.2475, allocations: 4 kB / 0.9537 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003504/0.2478, allocations: 470.8 kB / 0.9542 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.2478, allocations: 7.984 kB / 0.9542 GB, free: 4.555 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.034e-05/0.2478, allocations: 3.938 kB / 0.9542 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.2479, allocations: 4 kB / 0.9542 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.2479, allocations: 0 / 0.9542 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.2479, allocations: 0 / 0.9542 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2479, allocations: 3.938 kB / 0.9542 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.755e-05/0.248, allocations: 77.91 kB / 0.9543 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.749e-05/0.248, allocations: 96.94 kB / 0.9543 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.248, allocations: 0 / 0.9543 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.281e-05/0.2481, allocations: 4 kB / 0.9543 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.51e-05/0.2481, allocations: 0 / 0.9543 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-06/0.2481, allocations: 0 / 0.9543 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.651e-05/0.2482, allocations: 126.5 kB / 0.9545 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.234e-06/0.2482, allocations: 0 / 0.9545 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001944/0.2484, allocations: 11.94 kB / 0.9545 GB, free: 4.195 MB / 0.7325 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.0001001/0.2485, allocations: 103.2 kB / 0.9546 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 9.143e-05/0.2486, allocations: 20 kB / 0.9546 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.2486, allocations: 0 / 0.9546 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.27e-05/0.2486, allocations: 7.938 kB / 0.9546 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001601/0.2488, allocations: 16.19 kB / 0.9546 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003201/0.2491, allocations: 180.5 kB / 0.9548 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000223/0.2493, allocations: 0.6961 MB / 0.9555 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.593e-05/0.2494, allocations: 11.44 kB / 0.9555 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of SimCode: time 3.81e-07/0.2494, allocations: 0 / 0.9555 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of Templates: time 0.002118/0.2515, allocations: 0.8715 MB / 0.9563 GB, free: 2.219 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.makefile (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & ./Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches