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.001328/0.001327, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001332/0.001333, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.391/1.391, allocations: 222.9 MB / 240.9 MB, free: 15.23 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.506/2.506, allocations: 437.1 MB / 0.7111 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 68.52 kB / 0.8699 GB, free: 2.195 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3207, 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.002275/0.323, allocations: 0.8311 MB / 1.019 GB, free: 9.805 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0001132/0.3231, allocations: 35.8 kB / 1.019 GB, free: 9.77 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.067e-05/0.3232, allocations: 4 kB / 1.019 GB, free: 9.766 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.394e-05/0.3232, allocations: 11.86 kB / 1.019 GB, free: 9.754 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.858e-05/0.3233, allocations: 15.86 kB / 1.019 GB, free: 9.738 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 5.273e-05/0.3234, allocations: 15.98 kB / 1.019 GB, free: 9.723 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001157/0.3235, allocations: 63.75 kB / 1.019 GB, free: 9.66 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.3237, allocations: 47.97 kB / 1.019 GB, free: 9.613 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.587e-05/0.3238, allocations: 31.8 kB / 1.019 GB, free: 9.582 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.21e-05/0.3238, allocations: 23.86 kB / 1.019 GB, free: 9.559 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.547e-05/0.3238, allocations: 8 kB / 1.019 GB, free: 9.551 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.172e-05/0.3239, allocations: 4 kB / 1.019 GB, free: 9.547 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.501e-05/0.3239, allocations: 15.92 kB / 1.019 GB, free: 9.531 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.289e-05/0.3239, allocations: 35.75 kB / 1.019 GB, free: 9.496 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.3241, allocations: 76.03 kB / 1.019 GB, free: 9.422 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3241, allocations: 0 / 1.019 GB, free: 9.422 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.954e-06/0.3241, allocations: 0 / 1.019 GB, free: 9.422 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.047e-06/0.3241, 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.0004705/0.3246, allocations: 377.3 kB / 1.02 GB, free: 9.004 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.3246, allocations: 8.922 kB / 1.02 GB, free: 8.996 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.879e-05/0.3246, allocations: 12.84 kB / 1.02 GB, free: 8.984 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002258/0.3249, allocations: 196.1 kB / 1.02 GB, free: 8.754 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.3249, allocations: 16.31 kB / 1.02 GB, free: 8.738 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.921e-05/0.3249, allocations: 4.375 kB / 1.02 GB, free: 8.734 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001624/0.3251, allocations: 95.8 kB / 1.02 GB, free: 8.629 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.3251, allocations: 192 / 1.02 GB, free: 8.629 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.3251, allocations: 3.938 kB / 1.02 GB, free: 8.625 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.3252, allocations: 4 kB / 1.02 GB, free: 8.621 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.802e-05/0.3252, allocations: 39.92 kB / 1.02 GB, free: 8.582 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005612/0.3258, allocations: 440.5 kB / 1.02 GB, free: 8.098 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 6.222e-05/0.3259, allocations: 41.28 kB / 1.02 GB, free: 8.039 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.06e-05/0.3259, allocations: 21.84 kB / 1.02 GB, free: 8.012 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 7.534e-06/0.3259, allocations: 4 kB / 1.02 GB, free: 8.008 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.326, allocations: 30.56 kB / 1.02 GB, free: 7.969 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.326, allocations: 0 / 1.02 GB, free: 7.969 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0001746/0.3261, allocations: 57.47 kB / 1.02 GB, free: 7.906 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.041e-05/0.3262, allocations: 81.11 kB / 1.021 GB, free: 7.809 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.3264, allocations: 156.5 kB / 1.021 GB, free: 7.645 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.3264, allocations: 37.64 kB / 1.021 GB, free: 7.602 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.414e-05/0.3265, allocations: 104 kB / 1.021 GB, free: 7.496 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.022e-05/0.3265, allocations: 7.906 kB / 1.021 GB, free: 7.488 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.088e-05/0.3265, allocations: 13.72 kB / 1.021 GB, free: 7.469 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3267, allocations: 318.8 kB / 1.021 GB, free: 7.148 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.66e-05/0.3267, allocations: 8 kB / 1.021 GB, free: 7.141 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.558e-05/0.3267, allocations: 17.72 kB / 1.021 GB, free: 7.117 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.308e-05/0.3268, allocations: 29.72 kB / 1.021 GB, free: 7.082 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3268, allocations: 0 / 1.021 GB, free: 7.082 MB / 0.795 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.735e-05/0.3269, allocations: 57.53 kB / 1.021 GB, free: 7.02 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.3269, allocations: 4 kB / 1.021 GB, free: 7.016 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3269, allocations: 7.938 kB / 1.021 GB, free: 7.008 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.3269, allocations: 0 / 1.021 GB, free: 7.008 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.704e-05/0.327, allocations: 4 kB / 1.021 GB, free: 7.004 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.327, allocations: 4.062 kB / 1.021 GB, free: 7 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.184e-05/0.327, allocations: 11.84 kB / 1.021 GB, free: 6.988 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.527e-06/0.327, allocations: 0 / 1.021 GB, free: 6.988 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 9.173e-05/0.3271, allocations: 121.8 kB / 1.021 GB, free: 6.859 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.284e-05/0.3272, allocations: 7.906 kB / 1.021 GB, free: 6.852 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.595e-05/0.3272, allocations: 15.81 kB / 1.021 GB, free: 6.836 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.3272, allocations: 0 / 1.021 GB, free: 6.836 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3272, allocations: 3.938 kB / 1.021 GB, free: 6.832 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3272, allocations: 4 kB / 1.021 GB, free: 6.828 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000409/0.3277, allocations: 470.8 kB / 1.022 GB, free: 6.305 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.3277, allocations: 8.031 kB / 1.022 GB, free: 6.297 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.871e-05/0.3277, allocations: 3.984 kB / 1.022 GB, free: 6.293 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.3277, allocations: 7.984 kB / 1.022 GB, free: 6.285 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.3277, allocations: 0 / 1.022 GB, free: 6.285 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3277, allocations: 0 / 1.022 GB, free: 6.285 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.3277, allocations: 4 kB / 1.022 GB, free: 6.281 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.99e-05/0.3278, allocations: 77.91 kB / 1.022 GB, free: 6.184 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 6.026e-05/0.3279, allocations: 93 kB / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.3279, allocations: 0 / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.176e-05/0.3279, allocations: 4 kB / 1.022 GB, free: 6.07 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.637e-05/0.328, allocations: 3.938 kB / 1.022 GB, free: 6.066 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-06/0.328, allocations: 0 / 1.022 GB, free: 6.066 MB / 0.795 GB Notification: Performance of sorting global known variables: time 9.886e-05/0.3281, allocations: 125.9 kB / 1.022 GB, free: 5.945 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3281, allocations: 0 / 1.022 GB, free: 5.945 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0001846/0.3283, allocations: 8 kB / 1.022 GB, free: 5.938 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.00012/0.3284, allocations: 99.23 kB / 1.022 GB, free: 5.828 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 9.097e-05/0.3285, allocations: 16 kB / 1.022 GB, free: 5.812 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3285, allocations: 0 / 1.022 GB, free: 5.812 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 1.434e-05/0.3285, allocations: 11.94 kB / 1.022 GB, free: 5.801 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001513/0.3287, allocations: 16.19 kB / 1.022 GB, free: 5.785 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000329/0.329, allocations: 180.5 kB / 1.023 GB, free: 5.57 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003261/0.3293, allocations: 0.6924 MB / 1.023 GB, free: 4.852 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.671e-05/0.3294, allocations: 11.44 kB / 1.023 GB, free: 4.84 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.3294, allocations: 0 / 1.023 GB, free: 4.84 MB / 0.795 GB Notification: Performance of Templates: time 0.002278/0.3317, allocations: 0.8575 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=400 -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