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.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.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.001246/0.001246, allocations: 100 kB / 15.05 MB, free: 1.105 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.001453/0.001454, allocations: 177.3 kB / 15.94 MB, free: 228 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.529/1.529, allocations: 223.2 MB / 239.9 MB, free: 5.32 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.603/2.603, allocations: 390.3 MB / 0.6653 GB, free: 2.934 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004049/0.0004049, allocations: 16 kB / 0.8145 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9496/0.9501, allocations: 142.3 MB / 0.9535 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.0009899/0.9511, allocations: 0.5171 MB / 0.954 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001181/0.9512, allocations: 41.91 kB / 0.9541 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.593e-05/0.9513, allocations: 1.344 kB / 0.9541 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.048e-05/0.9513, allocations: 3.938 kB / 0.9541 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.369e-05/0.9514, allocations: 5.344 kB / 0.9541 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 3.782e-05/0.9515, allocations: 11.36 kB / 0.9541 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.74e-05/0.9515, allocations: 40.25 kB / 0.9541 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.9517, allocations: 30.44 kB / 0.9541 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.899e-05/0.9517, allocations: 20.64 kB / 0.9542 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.623e-05/0.9518, allocations: 19.58 kB / 0.9542 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.218e-05/0.9518, allocations: 2.688 kB / 0.9542 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.684e-06/0.9518, allocations: 1.5 kB / 0.9542 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.441e-05/0.9518, allocations: 14.08 kB / 0.9542 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.236e-05/0.9519, allocations: 32.52 kB / 0.9542 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.661e-05/0.9519, allocations: 50.75 kB / 0.9543 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.952, allocations: 0 / 0.9543 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.144e-06/0.952, allocations: 0 / 0.9543 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.67e-06/0.952, allocations: 1.75 kB / 0.9543 GB, free: 7.512 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.0003396/0.9523, allocations: 370.3 kB / 0.9546 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.9524, allocations: 9.656 kB / 0.9546 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.812e-05/0.9524, allocations: 16.61 kB / 0.9547 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/0.9526, allocations: 189.6 kB / 0.9548 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.9526, allocations: 10.72 kB / 0.9549 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.834e-05/0.9527, allocations: 4.25 kB / 0.9549 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001555/0.9528, allocations: 92.36 kB / 0.9549 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.9528, allocations: 0 / 0.9549 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.895e-05/0.9529, allocations: 1.281 kB / 0.9549 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.375e-06/0.9529, allocations: 2.469 kB / 0.9549 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.989e-05/0.953, allocations: 38.28 kB / 0.955 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005024/0.9535, allocations: 442.7 kB / 0.9554 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.098e-05/0.9535, allocations: 44.5 kB / 0.9554 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.49e-05/0.9536, allocations: 5.25 kB / 0.9555 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.107e-05/0.9536, allocations: 35.84 kB / 0.9555 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.9536, allocations: 0 / 0.9555 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001829/0.9538, allocations: 50.08 kB / 0.9555 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.769e-05/0.9538, allocations: 82.08 kB / 0.9556 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.954, allocations: 163.4 kB / 0.9558 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.678e-06/0.954, allocations: 25.95 kB / 0.9558 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.713e-05/0.954, allocations: 112.8 kB / 0.9559 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.063e-05/0.9541, allocations: 9.062 kB / 0.9559 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-06/0.9541, allocations: 0 / 0.9559 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.4e-05/0.9541, allocations: 325 kB / 0.9562 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.688e-05/0.9542, allocations: 3.156 kB / 0.9562 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.924e-05/0.9542, allocations: 22.42 kB / 0.9562 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.663e-05/0.9542, allocations: 8.188 kB / 0.9563 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.9542, allocations: 4.875 kB / 0.9563 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.655e-05/0.9543, allocations: 54.33 kB / 0.9563 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.9543, allocations: 6.625 kB / 0.9563 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.9543, allocations: 0 / 0.9563 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.9544, allocations: 1.469 kB / 0.9563 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.851e-05/0.9544, allocations: 9.297 kB / 0.9563 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.9545, allocations: 1.312 kB / 0.9563 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.915e-05/0.9545, allocations: 2.812 kB / 0.9563 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.9545, allocations: 5.344 kB / 0.9563 GB, free: 5.414 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.802e-05/0.9546, allocations: 116.6 kB / 0.9564 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.215e-05/0.9546, allocations: 11.97 kB / 0.9565 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.208e-05/0.9546, allocations: 14.33 kB / 0.9565 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.9547, allocations: 5.312 kB / 0.9565 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.9547, allocations: 1.031 kB / 0.9565 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.9547, allocations: 0 / 0.9565 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002929/0.955, allocations: 478.4 kB / 0.9569 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.955, allocations: 1.156 kB / 0.9569 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.786e-05/0.955, allocations: 2.25 kB / 0.9569 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.955, allocations: 1.281 kB / 0.9569 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.955, allocations: 1.156 kB / 0.9569 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.955, allocations: 0 / 0.9569 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.955, allocations: 1.219 kB / 0.9569 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.179e-05/0.9551, allocations: 95.59 kB / 0.957 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.607e-05/0.9551, allocations: 84.98 kB / 0.9571 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.9552, allocations: 5.406 kB / 0.9571 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.176e-05/0.9552, allocations: 3.984 kB / 0.9571 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.797e-05/0.9552, allocations: 9.047 kB / 0.9571 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.9552, allocations: 1.156 kB / 0.9571 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.094e-05/0.9553, allocations: 121.5 kB / 0.9572 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9553, allocations: 0 / 0.9572 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001986/0.9555, allocations: 18.12 kB / 0.9573 GB, free: 4.434 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.0001158/0.9556, allocations: 96.66 kB / 0.9574 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.307e-05/0.9557, allocations: 14.69 kB / 0.9574 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.9557, allocations: 3.938 kB / 0.9574 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.165e-05/0.9558, allocations: 7.906 kB / 0.9574 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001258/0.9559, allocations: 6.531 kB / 0.9574 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000371/0.9563, allocations: 181 kB / 0.9576 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001735/0.9565, allocations: 0.7004 MB / 0.9582 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.436e-05/0.9565, allocations: 9.125 kB / 0.9583 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.711e-05/0.9565, allocations: 10.59 kB / 0.9583 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.9565, allocations: 0 / 0.9583 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of Templates: time 0.00265/0.9592, allocations: 420.6 kB / 0.9587 GB, free: 3.211 MB / 0.7169 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","../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches