Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.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.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009081/0.009081, allocations: 101.3 kB / 15.73 MB, free: 6.051 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.001753/0.001753, allocations: 191.8 kB / 16.67 MB, free: 5.969 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.488/1.488, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.671/2.671, allocations: 437 MB / 0.7105 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 67.91 kB / 1.019 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.198/1.199, allocations: 151.6 MB / 1.167 GB, free: 3.809 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002866/1.202, allocations: 0.621 MB / 1.167 GB, free: 3.188 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001574/1.204, allocations: 0.8336 MB / 1.168 GB, free: 2.344 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.896e-05/1.204, allocations: 0 / 1.168 GB, free: 2.344 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.002e-05/1.204, allocations: 0 / 1.168 GB, free: 2.344 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.801e-05/1.204, allocations: 7.922 kB / 1.168 GB, free: 2.336 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001816/1.204, allocations: 8 kB / 1.168 GB, free: 2.328 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.004e-05/1.204, allocations: 27.92 kB / 1.168 GB, free: 2.301 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/1.204, allocations: 11.98 kB / 1.168 GB, free: 2.289 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.433e-05/1.204, allocations: 15.92 kB / 1.168 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.169e-05/1.205, allocations: 11.98 kB / 1.168 GB, free: 2.262 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.212e-05/1.205, allocations: 4 kB / 1.168 GB, free: 2.258 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.023e-05/1.205, allocations: 0 / 1.168 GB, free: 2.258 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.945e-05/1.205, allocations: 4 kB / 1.168 GB, free: 2.254 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.773e-05/1.205, allocations: 11.92 kB / 1.168 GB, free: 2.242 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001267/1.205, allocations: 27.89 kB / 1.168 GB, free: 2.215 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/1.205, allocations: 0 / 1.168 GB, free: 2.215 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.675e-06/1.205, allocations: 0 / 1.168 GB, free: 2.215 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.732e-06/1.205, allocations: 4 kB / 1.168 GB, free: 2.211 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005489/1.205, allocations: 340 kB / 1.168 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/1.205, allocations: 8.031 kB / 1.168 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.185e-05/1.205, allocations: 0.9375 kB / 1.168 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001527/1.206, allocations: 176.3 kB / 1.169 GB, free: 1.613 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/1.206, allocations: 4.375 kB / 1.169 GB, free: 1.609 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.114e-05/1.206, allocations: 384 / 1.169 GB, free: 1.609 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000194/1.206, allocations: 54.23 kB / 1.169 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/1.206, allocations: 4.172 kB / 1.169 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/1.206, allocations: 7.938 kB / 1.169 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/1.206, allocations: 0 / 1.169 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001886/1.206, allocations: 35.95 kB / 1.169 GB, free: 1.504 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004169/1.207, allocations: 252.9 kB / 1.169 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/1.207, allocations: 42.5 kB / 1.169 GB, free: 1.156 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.455e-05/1.207, allocations: 28.89 kB / 1.169 GB, free: 1.125 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/1.207, allocations: 0 / 1.169 GB, free: 1.125 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/1.207, allocations: 30.56 kB / 1.169 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 2.354e-06/1.207, allocations: 0 / 1.169 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0003981/1.207, allocations: 97.52 kB / 1.169 GB, free: 0.9844 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/1.207, allocations: 51.41 kB / 1.169 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.125e-05/1.207, allocations: 101.8 kB / 1.169 GB, free: 0.8125 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/1.207, allocations: 25.7 kB / 1.169 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.42e-05/1.208, allocations: 84.08 kB / 1.169 GB, free: 0.6953 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.904e-05/1.208, allocations: 7.953 kB / 1.169 GB, free: 0.6875 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.314e-05/1.208, allocations: 13.72 kB / 1.169 GB, free: 0.668 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001158/1.208, allocations: 322.9 kB / 1.17 GB, free: 352 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.228e-05/1.208, allocations: 19.98 kB / 1.17 GB, free: 332 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.177e-05/1.208, allocations: 11.98 kB / 1.17 GB, free: 320 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001534/1.208, allocations: 40.81 kB / 1.17 GB, free: 276 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/1.208, allocations: 0 / 1.17 GB, free: 276 kB / 0.8887 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001941/1.208, allocations: 81.59 kB / 1.17 GB, free: 188 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/1.208, allocations: 8 kB / 1.17 GB, free: 180 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/1.208, allocations: 0 / 1.17 GB, free: 180 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/1.208, allocations: 0 / 1.17 GB, free: 180 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/1.208, allocations: 11.98 kB / 1.17 GB, free: 168 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/1.208, allocations: 0 / 1.17 GB, free: 168 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.146e-05/1.208, allocations: 11.94 kB / 1.17 GB, free: 156 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-06/1.208, allocations: 0 / 1.17 GB, free: 156 kB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 8.289e-05/1.209, allocations: 113.8 kB / 1.17 GB, free: 32 kB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.658e-05/1.209, allocations: 8 kB / 1.17 GB, free: 24 kB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.101e-05/1.209, allocations: 3.125 kB / 1.17 GB, free: 16 kB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/1.209, allocations: 0 / 1.17 GB, free: 16 kB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/1.209, allocations: 0 / 1.17 GB, free: 16 kB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/1.209, allocations: 0 / 1.17 GB, free: 16 kB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/1.209, allocations: 161.6 kB / 1.17 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/1.209, allocations: 0 / 1.17 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.568e-05/1.209, allocations: 11.98 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/1.209, allocations: 4 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/1.209, allocations: 0 / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/1.209, allocations: 0 / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/1.209, allocations: 4 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002477/1.209, allocations: 167.4 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.589e-05/1.209, allocations: 77.11 kB / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/1.209, allocations: 8.031 kB / 1.17 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.826e-05/1.209, allocations: 11.92 kB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.025e-05/1.209, allocations: 11.98 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/1.209, allocations: 0 / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.702e-05/1.209, allocations: 79.47 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/1.209, allocations: 0 / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002065/1.21, allocations: 8 kB / 1.171 GB, free: 15.4 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * 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.0001166/1.21, allocations: 99.25 kB / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002213/1.21, allocations: 43.89 kB / 1.171 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/1.21, allocations: 0 / 1.171 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 8.772e-05/1.21, allocations: 23.97 kB / 1.171 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/1.21, allocations: 14.11 kB / 1.171 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002852/1.211, allocations: 113.5 kB / 1.171 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/1.211, allocations: 0.6769 MB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.965e-05/1.211, allocations: 4 kB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.15e-05/1.211, allocations: 11.44 kB / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of SimCode: time 3.41e-07/1.211, allocations: 0 / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of Templates: time 0.002464/1.214, allocations: 0.6108 MB / 1.172 GB, free: 13.75 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches