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.001373/0.001373, allocations: 113.3 kB / 15.7 MB, free: 124 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 200 kB / 16.64 MB, free: 6.609 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.417/1.417, allocations: 222.9 MB / 240.3 MB, free: 4.363 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.506/2.506, allocations: 390.3 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 63.81 kB / 0.9509 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3262, allocations: 140.4 MB / 1.088 GB, free: 1.523 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.002577/0.3288, allocations: 0.8176 MB / 1.089 GB, free: 0.7031 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0001696/0.329, allocations: 47.78 kB / 1.089 GB, free: 0.6562 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.929e-05/0.3291, allocations: 4 kB / 1.089 GB, free: 0.6523 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 5.562e-05/0.3292, allocations: 7.875 kB / 1.089 GB, free: 0.6445 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.673e-05/0.3293, allocations: 11.86 kB / 1.089 GB, free: 0.6328 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 7.678e-05/0.3293, allocations: 19.98 kB / 1.089 GB, free: 0.6133 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001775/0.3295, allocations: 59.84 kB / 1.089 GB, free: 0.5547 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002739/0.3298, allocations: 39.97 kB / 1.089 GB, free: 0.5156 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.512e-05/0.3299, allocations: 31.8 kB / 1.089 GB, free: 496 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.985e-05/0.33, allocations: 23.86 kB / 1.089 GB, free: 472 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.427e-05/0.33, allocations: 8 kB / 1.089 GB, free: 464 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.354e-05/0.3301, allocations: 4 kB / 1.089 GB, free: 460 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.711e-05/0.3301, allocations: 19.92 kB / 1.089 GB, free: 440 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 6.344e-05/0.3302, allocations: 31.75 kB / 1.089 GB, free: 408 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001949/0.3304, allocations: 79.62 kB / 1.089 GB, free: 328 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 9.558e-06/0.3304, allocations: 0 / 1.089 GB, free: 328 kB / 0.8419 GB Notification: Performance of FrontEnd: time 2.965e-06/0.3304, allocations: 4 kB / 1.089 GB, free: 324 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.716e-05/0.3304, allocations: 0 / 1.089 GB, free: 324 kB / 0.8419 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.0007923/0.3312, allocations: 375.2 kB / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.087e-05/0.3313, allocations: 8.031 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.431e-05/0.3314, allocations: 16.73 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003171/0.3317, allocations: 192.2 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.3317, allocations: 4.375 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.448e-05/0.3317, allocations: 8.375 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002474/0.332, allocations: 97.92 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.332, allocations: 4.188 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.332, allocations: 7.938 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.3321, allocations: 0 / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001051/0.3322, allocations: 43.91 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007489/0.3329, allocations: 436.5 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 7.009e-05/0.333, allocations: 41.16 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.169e-05/0.3331, allocations: 17.84 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.057e-05/0.3331, allocations: 4.031 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.721e-05/0.3331, allocations: 34.56 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.362e-06/0.3331, allocations: 4 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0002235/0.3334, allocations: 57.47 kB / 1.09 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.248e-05/0.3334, allocations: 81.11 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002091/0.3337, allocations: 159.9 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.147e-05/0.3337, allocations: 25.7 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.95e-05/0.3338, allocations: 100 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.225e-05/0.3338, allocations: 3.906 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-05/0.3339, allocations: 21.97 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002057/0.3341, allocations: 322.8 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.702e-05/0.3341, allocations: 3.938 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.13e-05/0.3341, allocations: 21.72 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.796e-05/0.3342, allocations: 29.64 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3342, allocations: 0 / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001043/0.3343, allocations: 57.61 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.3344, allocations: 8 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.3344, allocations: 3.938 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.3344, allocations: 0 / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.739e-05/0.3345, allocations: 11.92 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.3345, allocations: 4 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.455e-05/0.3345, allocations: 7.938 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.849e-06/0.3345, allocations: 0 / 1.091 GB, free: 13.88 MB / 0.8575 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.614e-05/0.3346, allocations: 114.4 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.417e-05/0.3347, allocations: 15.89 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.105e-05/0.3347, allocations: 15.81 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.3347, allocations: 0 / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.3348, allocations: 7.984 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3348, allocations: 0 / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004973/0.3353, allocations: 466.8 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3353, allocations: 0 / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.896e-05/0.3353, allocations: 8.062 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-06/0.3353, allocations: 0 / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.3353, allocations: 0 / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.3353, allocations: 0 / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3353, allocations: 0 / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.07e-05/0.3354, allocations: 89.7 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.443e-05/0.3355, allocations: 85.05 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.686e-05/0.3355, allocations: 8 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.376e-05/0.3356, allocations: 4 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.795e-05/0.3356, allocations: 7.984 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-06/0.3356, allocations: 0 / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.2e-05/0.3357, allocations: 121.1 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.61e-07/0.3357, allocations: 0 / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002306/0.3359, allocations: 8 kB / 1.092 GB, free: 12.84 MB / 0.8575 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.0001626/0.3361, allocations: 99.25 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 9.799e-05/0.3362, allocations: 19.94 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3362, allocations: 3.938 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.015e-05/0.3362, allocations: 4 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001848/0.3364, allocations: 15.88 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003776/0.3368, allocations: 170.8 kB / 1.092 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.3371, allocations: 0.6965 MB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.114e-05/0.3371, allocations: 8.422 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.738e-05/0.3372, allocations: 11.44 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.3372, allocations: 0 / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of Templates: time 0.002549/0.3397, allocations: 446 kB / 1.094 GB, free: 11.31 MB / 0.8575 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