Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.00951/0.00951, allocations: 101.6 kB / 15.73 MB, free: 6.449 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.001891/0.001891, allocations: 196.7 kB / 16.68 MB, free: 6.352 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.845/2.845, allocations: 437 MB / 0.7105 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 67.89 kB / 1.019 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3836/0.3848, allocations: 151.6 MB / 1.167 GB, free: 6.82 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002372/0.3872, allocations: 0.8139 MB / 1.167 GB, free: 6 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0001593/0.3874, allocations: 55.78 kB / 1.167 GB, free: 5.945 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.336e-05/0.3875, allocations: 0 / 1.167 GB, free: 5.945 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.448e-05/0.3876, allocations: 7.922 kB / 1.167 GB, free: 5.938 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.993e-05/0.3877, allocations: 11.88 kB / 1.167 GB, free: 5.926 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 5.486e-05/0.3878, allocations: 19.92 kB / 1.168 GB, free: 5.906 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001311/0.3879, allocations: 55.91 kB / 1.168 GB, free: 5.852 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.3881, allocations: 47.91 kB / 1.168 GB, free: 5.805 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.157e-05/0.3882, allocations: 23.88 kB / 1.168 GB, free: 5.781 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.5e-05/0.3883, allocations: 35.77 kB / 1.168 GB, free: 5.746 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.227e-05/0.3883, allocations: 8 kB / 1.168 GB, free: 5.738 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.022e-05/0.3883, allocations: 4 kB / 1.168 GB, free: 5.734 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.644e-05/0.3883, allocations: 15.94 kB / 1.168 GB, free: 5.719 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.164e-05/0.3884, allocations: 35.8 kB / 1.168 GB, free: 5.684 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.3885, allocations: 75.52 kB / 1.168 GB, free: 5.609 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3886, allocations: 4 kB / 1.168 GB, free: 5.605 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.194e-06/0.3886, allocations: 0 / 1.168 GB, free: 5.605 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.3886, allocations: 0 / 1.168 GB, free: 5.605 MB / 0.92 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.0006337/0.3892, allocations: 391 kB / 1.168 GB, free: 5.172 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.3893, allocations: 12.03 kB / 1.168 GB, free: 5.16 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.868e-05/0.3893, allocations: 12.84 kB / 1.168 GB, free: 5.148 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002166/0.3895, allocations: 184.3 kB / 1.168 GB, free: 4.93 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.3896, allocations: 8.359 kB / 1.168 GB, free: 4.922 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.115e-05/0.3896, allocations: 12.31 kB / 1.168 GB, free: 4.91 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001672/0.3898, allocations: 95.89 kB / 1.168 GB, free: 4.805 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.3898, allocations: 192 / 1.168 GB, free: 4.805 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.592e-05/0.3898, allocations: 7.938 kB / 1.169 GB, free: 4.797 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.3898, allocations: 4 kB / 1.169 GB, free: 4.793 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.206e-05/0.3899, allocations: 35.92 kB / 1.169 GB, free: 4.758 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005759/0.3905, allocations: 432.8 kB / 1.169 GB, free: 4.281 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 6.583e-05/0.3906, allocations: 45.17 kB / 1.169 GB, free: 4.219 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.404e-05/0.3906, allocations: 17.84 kB / 1.169 GB, free: 4.195 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 7.705e-06/0.3906, allocations: 0 / 1.169 GB, free: 4.195 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.3906, allocations: 38.56 kB / 1.169 GB, free: 4.148 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 1.143e-06/0.3907, allocations: 0 / 1.169 GB, free: 4.148 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0001823/0.3908, allocations: 57.53 kB / 1.169 GB, free: 4.086 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.391, allocations: 81.09 kB / 1.169 GB, free: 3.988 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.3911, allocations: 157.3 kB / 1.169 GB, free: 3.828 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.167e-05/0.3911, allocations: 25.7 kB / 1.169 GB, free: 3.797 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.677e-05/0.3912, allocations: 100.1 kB / 1.169 GB, free: 3.695 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 9.397e-06/0.3912, allocations: 8.141 kB / 1.169 GB, free: 3.688 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.614e-05/0.3912, allocations: 25.7 kB / 1.169 GB, free: 3.656 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001021/0.3914, allocations: 318.8 kB / 1.17 GB, free: 3.336 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.867e-05/0.3914, allocations: 7.984 kB / 1.17 GB, free: 3.328 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.666e-05/0.3914, allocations: 21.66 kB / 1.17 GB, free: 3.301 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.823e-05/0.3915, allocations: 21.72 kB / 1.17 GB, free: 3.273 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.3915, allocations: 4 kB / 1.17 GB, free: 3.27 MB / 0.92 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.802e-05/0.3916, allocations: 73.53 kB / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.3916, allocations: 4 kB / 1.17 GB, free: 3.188 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.3916, allocations: 3.938 kB / 1.17 GB, free: 3.184 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.3916, allocations: 0 / 1.17 GB, free: 3.184 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.359e-05/0.3917, allocations: 8 kB / 1.17 GB, free: 3.176 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.3917, allocations: 0 / 1.17 GB, free: 3.176 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.831e-05/0.3917, allocations: 0 / 1.17 GB, free: 3.176 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-06/0.3918, allocations: 4 kB / 1.17 GB, free: 3.172 MB / 0.92 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 9.043e-05/0.3918, allocations: 117.9 kB / 1.17 GB, free: 3.047 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.304e-05/0.3919, allocations: 7.953 kB / 1.17 GB, free: 3.039 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.827e-05/0.3919, allocations: 15.8 kB / 1.17 GB, free: 3.02 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3919, allocations: 7.938 kB / 1.17 GB, free: 3.012 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3919, allocations: 3.938 kB / 1.17 GB, free: 3.008 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.392, allocations: 0 / 1.17 GB, free: 3.008 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003855/0.3923, allocations: 474.8 kB / 1.171 GB, free: 2.48 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3924, allocations: 4.031 kB / 1.171 GB, free: 2.477 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.075e-05/0.3924, allocations: 7.984 kB / 1.171 GB, free: 2.469 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.3924, allocations: 0 / 1.171 GB, free: 2.469 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.612e-06/0.3924, allocations: 0 / 1.171 GB, free: 2.469 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.3924, allocations: 7.922 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3924, allocations: 4 kB / 1.171 GB, free: 2.457 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.505e-05/0.3925, allocations: 81.89 kB / 1.171 GB, free: 2.355 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.267e-05/0.3926, allocations: 89.05 kB / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.232e-05/0.3926, allocations: 0 / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.953e-05/0.3926, allocations: 0 / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.648e-05/0.3926, allocations: 0 / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.227e-06/0.3926, allocations: 4 kB / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of sorting global known variables: time 8.994e-05/0.3927, allocations: 124.7 kB / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3927, allocations: 0 / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0001945/0.3929, allocations: 7.938 kB / 1.171 GB, free: 2.117 MB / 0.92 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.000117/0.3931, allocations: 107.2 kB / 1.171 GB, free: 2.004 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 9.007e-05/0.3932, allocations: 19.98 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3932, allocations: 0 / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 9.297e-06/0.3932, allocations: 7.938 kB / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000154/0.3933, allocations: 13.34 kB / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003258/0.3937, allocations: 158.8 kB / 1.171 GB, free: 1.773 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.394, allocations: 0.7002 MB / 1.172 GB, free: 1.047 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 3.828e-05/0.394, allocations: 4.438 kB / 1.172 GB, free: 1.043 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.557e-05/0.394, allocations: 11.44 kB / 1.172 GB, free: 1.031 MB / 0.92 GB Notification: Performance of SimCode: time 7.91e-07/0.394, allocations: 0 / 1.172 GB, free: 1.031 MB / 0.92 GB Notification: Performance of Templates: time 0.002782/0.3968, allocations: 464.5 kB / 1.172 GB, free: 0.5781 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.makefile (rm -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & ./Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches