Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.From_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton") translateModel(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.001632/0.001632, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.57/1.57, allocations: 223.3 MB / 240 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.626/2.626, allocations: 390.9 MB / 0.666 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003914/0.0003913, allocations: 12 kB / 0.8154 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8616/0.862, allocations: 142.4 MB / 0.9544 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.001134/0.8632, allocations: 0.515 MB / 0.9549 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001276/0.8633, allocations: 39.94 kB / 0.955 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.457e-05/0.8634, allocations: 2.344 kB / 0.955 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.125e-05/0.8634, allocations: 7.875 kB / 0.955 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.506e-05/0.8635, allocations: 1.188 kB / 0.955 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 5.646e-05/0.8636, allocations: 14.61 kB / 0.955 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001048/0.8637, allocations: 57.84 kB / 0.9551 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001606/0.8638, allocations: 27.42 kB / 0.9551 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.524e-05/0.8639, allocations: 21.55 kB / 0.9551 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.707e-05/0.864, allocations: 22.67 kB / 0.9551 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.145e-05/0.864, allocations: 1.75 kB / 0.9551 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.333e-05/0.864, allocations: 2.375 kB / 0.9551 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.862e-05/0.864, allocations: 6.328 kB / 0.9551 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.915e-05/0.8641, allocations: 41.17 kB / 0.9552 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.246e-05/0.8642, allocations: 45.39 kB / 0.9552 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.8642, allocations: 4 kB / 0.9552 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.516e-06/0.8642, allocations: 1.219 kB / 0.9552 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.8642, allocations: 3.938 kB / 0.9552 GB, free: 7.297 MB / 0.7169 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.0004194/0.8646, allocations: 363.6 kB / 0.9556 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.8647, allocations: 13.73 kB / 0.9556 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.547e-05/0.8647, allocations: 16.77 kB / 0.9556 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002095/0.865, allocations: 185 kB / 0.9558 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.865, allocations: 10.75 kB / 0.9558 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.587e-05/0.865, allocations: 5.125 kB / 0.9558 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001699/0.8652, allocations: 93.52 kB / 0.9559 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.8652, allocations: 0.9375 kB / 0.9559 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.8652, allocations: 5.5 kB / 0.9559 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.8652, allocations: 5.016 kB / 0.9559 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.616e-05/0.8653, allocations: 35.81 kB / 0.9559 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005345/0.8659, allocations: 446.4 kB / 0.9564 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.54e-05/0.8659, allocations: 36.47 kB / 0.9564 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.526e-05/0.866, allocations: 23.5 kB / 0.9564 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-06/0.866, allocations: 0 / 0.9564 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.866, allocations: 39.92 kB / 0.9565 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 7.81e-07/0.866, allocations: 1.469 kB / 0.9565 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001905/0.8662, allocations: 50.77 kB / 0.9565 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.041e-05/0.8663, allocations: 77.11 kB / 0.9566 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.8664, allocations: 168.9 kB / 0.9567 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.035e-06/0.8664, allocations: 25.7 kB / 0.9568 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.128e-05/0.8665, allocations: 103.8 kB / 0.9569 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.578e-06/0.8665, allocations: 13.31 kB / 0.9569 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.758e-06/0.8665, allocations: 1.406 kB / 0.9569 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.716e-05/0.8666, allocations: 327.7 kB / 0.9572 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.639e-05/0.8666, allocations: 3.594 kB / 0.9572 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.41e-05/0.8666, allocations: 19 kB / 0.9572 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.049e-05/0.8667, allocations: 12.56 kB / 0.9572 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.8667, allocations: 0 / 0.9572 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.886e-05/0.8668, allocations: 59.12 kB / 0.9573 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.8668, allocations: 4.906 kB / 0.9573 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.8668, allocations: 5.125 kB / 0.9573 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.8668, allocations: 0 / 0.9573 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.832e-05/0.8669, allocations: 5.75 kB / 0.9573 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.8669, allocations: 1.125 kB / 0.9573 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.756e-05/0.867, allocations: 6.75 kB / 0.9573 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-06/0.867, allocations: 1.438 kB / 0.9573 GB, free: 5.184 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.6e-05/0.867, allocations: 120.7 kB / 0.9574 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.062e-05/0.8671, allocations: 8.094 kB / 0.9574 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.446e-05/0.8671, allocations: 10.69 kB / 0.9574 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.8671, allocations: 5.469 kB / 0.9574 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.8671, allocations: 0 / 0.9574 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.8671, allocations: 1.375 kB / 0.9574 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002867/0.8674, allocations: 473.7 kB / 0.9579 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.8674, allocations: 5 kB / 0.9579 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.88e-05/0.8675, allocations: 6.641 kB / 0.9579 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.8675, allocations: 1.031 kB / 0.9579 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.636e-06/0.8675, allocations: 1.188 kB / 0.9579 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.8675, allocations: 0 / 0.9579 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.8675, allocations: 1.188 kB / 0.9579 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.111e-05/0.8676, allocations: 82.56 kB / 0.958 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.343e-05/0.8676, allocations: 92.25 kB / 0.9581 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.461e-05/0.8676, allocations: 1.281 kB / 0.9581 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.835e-05/0.8677, allocations: 0 / 0.9581 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.607e-05/0.8677, allocations: 1.812 kB / 0.9581 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.604e-06/0.8677, allocations: 5 kB / 0.9581 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.315e-05/0.8678, allocations: 119.2 kB / 0.9582 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8678, allocations: 4.031 kB / 0.9582 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001872/0.868, allocations: 14.2 kB / 0.9582 GB, free: 4.227 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001073/0.8681, allocations: 104 kB / 0.9583 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.91e-05/0.8682, allocations: 15.09 kB / 0.9583 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.8682, allocations: 0 / 0.9583 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.235e-05/0.8682, allocations: 12.06 kB / 0.9583 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001692/0.8684, allocations: 10.58 kB / 0.9584 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003256/0.8687, allocations: 181.1 kB / 0.9585 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001238/0.8688, allocations: 0.6992 MB / 0.9592 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.138e-05/0.8689, allocations: 9.141 kB / 0.9592 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.551e-05/0.8689, allocations: 10.72 kB / 0.9592 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.8689, allocations: 0 / 0.9592 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of Templates: time 0.002563/0.8715, allocations: 414.1 kB / 0.9596 GB, free: 3 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.makefile (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & ./Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches