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.001694/0.001694, allocations: 104.9 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.001756/0.001757, allocations: 189.8 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.376/1.376, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.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.627/2.627, allocations: 437 MB / 0.711 GB, free: 4.508 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 67.5 kB / 0.8699 GB, free: 2.195 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3353/0.3369, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002401/0.3394, allocations: 0.8311 MB / 1.019 GB, free: 9.809 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0001477/0.3395, allocations: 43.78 kB / 1.019 GB, free: 9.766 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.456e-05/0.3396, allocations: 4 kB / 1.019 GB, free: 9.762 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.469e-05/0.3397, allocations: 11.88 kB / 1.019 GB, free: 9.75 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.347e-05/0.3398, allocations: 7.875 kB / 1.019 GB, free: 9.742 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 5.822e-05/0.3399, allocations: 23.97 kB / 1.019 GB, free: 9.719 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001102/0.34, allocations: 63.7 kB / 1.019 GB, free: 9.656 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001772/0.3402, allocations: 47.95 kB / 1.019 GB, free: 9.609 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.814e-05/0.3402, allocations: 23.88 kB / 1.019 GB, free: 9.586 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.751e-05/0.3403, allocations: 31.78 kB / 1.019 GB, free: 9.555 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.3403, allocations: 8 kB / 1.019 GB, free: 9.547 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.437e-05/0.3403, allocations: 4 kB / 1.019 GB, free: 9.543 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.439e-05/0.3404, allocations: 19.92 kB / 1.019 GB, free: 9.523 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.549e-05/0.3404, allocations: 35.73 kB / 1.019 GB, free: 9.488 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001114/0.3405, allocations: 64.06 kB / 1.019 GB, free: 9.426 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3406, allocations: 0 / 1.019 GB, free: 9.426 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.973e-06/0.3406, allocations: 4 kB / 1.019 GB, free: 9.422 MB / 0.795 GB Notification: Performance of Transformations before backend: time 9.137e-06/0.3406, allocations: 0 / 1.019 GB, free: 9.422 MB / 0.795 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.0004645/0.341, allocations: 379.2 kB / 1.02 GB, free: 9 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.3411, allocations: 8.031 kB / 1.02 GB, free: 8.992 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.222e-05/0.3411, allocations: 8.844 kB / 1.02 GB, free: 8.984 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002246/0.3414, allocations: 200.1 kB / 1.02 GB, free: 8.75 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.3414, allocations: 4.375 kB / 1.02 GB, free: 8.746 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.529e-05/0.3414, allocations: 8.375 kB / 1.02 GB, free: 8.738 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000161/0.3416, allocations: 95.84 kB / 1.02 GB, free: 8.633 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.3416, allocations: 192 / 1.02 GB, free: 8.633 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.834e-05/0.3416, allocations: 11.94 kB / 1.02 GB, free: 8.621 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.3416, allocations: 3.938 kB / 1.02 GB, free: 8.617 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.63e-05/0.3417, allocations: 39.92 kB / 1.02 GB, free: 8.578 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005539/0.3423, allocations: 432.5 kB / 1.02 GB, free: 8.102 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 5.743e-05/0.3424, allocations: 37.28 kB / 1.02 GB, free: 8.047 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.306e-05/0.3424, allocations: 25.83 kB / 1.02 GB, free: 8.016 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 8.206e-06/0.3424, allocations: 0 / 1.02 GB, free: 8.016 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.3425, allocations: 34.56 kB / 1.02 GB, free: 7.973 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.3425, allocations: 0 / 1.02 GB, free: 7.973 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0001877/0.3427, allocations: 61.48 kB / 1.02 GB, free: 7.906 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.3427, allocations: 77.11 kB / 1.021 GB, free: 7.812 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.3429, allocations: 157.3 kB / 1.021 GB, free: 7.648 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.3429, allocations: 25.7 kB / 1.021 GB, free: 7.617 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 9.443e-05/0.343, allocations: 108 kB / 1.021 GB, free: 7.508 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 9.027e-06/0.343, allocations: 4.156 kB / 1.021 GB, free: 7.504 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.86e-05/0.3431, allocations: 25.7 kB / 1.021 GB, free: 7.473 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.3432, allocations: 318.8 kB / 1.021 GB, free: 7.152 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.935e-05/0.3432, allocations: 3.938 kB / 1.021 GB, free: 7.148 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.666e-05/0.3432, allocations: 25.7 kB / 1.021 GB, free: 7.117 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.407e-05/0.3433, allocations: 25.66 kB / 1.021 GB, free: 7.086 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3433, allocations: 4 kB / 1.021 GB, free: 7.082 MB / 0.795 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.13e-05/0.3434, allocations: 61.53 kB / 1.021 GB, free: 7.016 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.3434, allocations: 8 kB / 1.021 GB, free: 7.008 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.3434, allocations: 3.938 kB / 1.021 GB, free: 7.004 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.3435, allocations: 0 / 1.021 GB, free: 7.004 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.393e-05/0.3435, allocations: 4 kB / 1.021 GB, free: 7 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.3435, allocations: 4 kB / 1.021 GB, free: 6.996 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.346e-05/0.3436, allocations: 7.844 kB / 1.021 GB, free: 6.988 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.732e-06/0.3436, allocations: 4 kB / 1.021 GB, free: 6.984 MB / 0.795 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.76e-05/0.3437, allocations: 113.9 kB / 1.021 GB, free: 6.863 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.62e-05/0.3437, allocations: 7.906 kB / 1.021 GB, free: 6.855 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.891e-05/0.3438, allocations: 19.8 kB / 1.021 GB, free: 6.836 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3438, allocations: 0 / 1.021 GB, free: 6.836 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.677e-06/0.3438, allocations: 8 kB / 1.021 GB, free: 6.828 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3438, allocations: 8.016 kB / 1.021 GB, free: 6.82 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004193/0.3442, allocations: 466.8 kB / 1.022 GB, free: 6.301 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3442, allocations: 3.938 kB / 1.022 GB, free: 6.297 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.231e-05/0.3443, allocations: 7.938 kB / 1.022 GB, free: 6.289 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3443, allocations: 0 / 1.022 GB, free: 6.289 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-06/0.3443, allocations: 0 / 1.022 GB, free: 6.289 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.3443, allocations: 0 / 1.022 GB, free: 6.289 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3443, allocations: 0 / 1.022 GB, free: 6.289 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.125e-05/0.3444, allocations: 85.89 kB / 1.022 GB, free: 6.184 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.578e-05/0.3444, allocations: 89 kB / 1.022 GB, free: 6.078 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.3445, allocations: 4 kB / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.097e-05/0.3445, allocations: 0 / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.349e-05/0.3445, allocations: 0 / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-06/0.3445, allocations: 0 / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of sorting global known variables: time 9.65e-05/0.3446, allocations: 129.6 kB / 1.022 GB, free: 5.949 MB / 0.795 GB Notification: Performance of sort global known variables: time 4.3e-07/0.3446, allocations: 0 / 1.022 GB, free: 5.949 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000195/0.3448, allocations: 8 kB / 1.022 GB, free: 5.941 MB / 0.795 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.0001273/0.3449, allocations: 99.28 kB / 1.022 GB, free: 5.832 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 8.807e-05/0.345, allocations: 19.98 kB / 1.022 GB, free: 5.812 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3451, allocations: 0 / 1.022 GB, free: 5.812 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 1.182e-05/0.3451, allocations: 7.938 kB / 1.022 GB, free: 5.805 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001776/0.3453, allocations: 13.83 kB / 1.022 GB, free: 5.793 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004249/0.3457, allocations: 184.8 kB / 1.022 GB, free: 5.574 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000322/0.346, allocations: 0.6928 MB / 1.023 GB, free: 4.855 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.989e-05/0.3461, allocations: 11.44 kB / 1.023 GB, free: 4.844 MB / 0.795 GB Notification: Performance of SimCode: time 6.41e-07/0.3461, allocations: 8 kB / 1.023 GB, free: 4.836 MB / 0.795 GB Notification: Performance of Templates: time 0.002763/0.3489, allocations: 0.8535 MB / 1.024 GB, free: 3.984 MB / 0.795 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/jenkins1/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