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.001352/0.001353, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001569/0.001569, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.416/1.416, allocations: 222.9 MB / 239.8 MB, free: 4.617 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.65/2.65, allocations: 437 MB / 0.7099 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 67.89 kB / 0.8685 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9024/0.9036, allocations: 151.6 MB / 1.017 GB, free: 2.797 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002098/0.9058, allocations: 0.6835 MB / 1.017 GB, free: 2.117 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00106/0.9069, allocations: 0.8195 MB / 1.018 GB, free: 1.285 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.712e-05/0.9069, allocations: 3.938 kB / 1.018 GB, free: 1.281 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.527e-05/0.907, allocations: 0 / 1.018 GB, free: 1.281 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.197e-05/0.9071, allocations: 3.938 kB / 1.018 GB, free: 1.277 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001622/0.9072, allocations: 15.98 kB / 1.018 GB, free: 1.262 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.523e-05/0.9073, allocations: 23.98 kB / 1.018 GB, free: 1.238 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.9074, allocations: 4 kB / 1.018 GB, free: 1.234 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.655e-05/0.9075, allocations: 19.86 kB / 1.018 GB, free: 1.215 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.914e-05/0.9076, allocations: 11.98 kB / 1.018 GB, free: 1.203 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.971e-05/0.9076, allocations: 4 kB / 1.018 GB, free: 1.199 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.119e-05/0.9076, allocations: 0 / 1.018 GB, free: 1.199 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.29e-05/0.9077, allocations: 7.922 kB / 1.018 GB, free: 1.191 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.157e-05/0.9077, allocations: 8 kB / 1.018 GB, free: 1.184 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.891e-05/0.9078, allocations: 23.89 kB / 1.018 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.9078, allocations: 0 / 1.018 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.302e-06/0.9078, allocations: 0 / 1.018 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.9078, allocations: 0 / 1.018 GB, free: 1.16 MB / 0.7637 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.0005359/0.9084, allocations: 349.5 kB / 1.019 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.9084, allocations: 8.031 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.713e-05/0.9085, allocations: 4.938 kB / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001386/0.9086, allocations: 168.3 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.395e-05/0.9086, allocations: 384 / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.372e-05/0.9087, allocations: 384 / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001967/0.9089, allocations: 50.23 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.9089, allocations: 8.172 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.9089, allocations: 7.922 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.9089, allocations: 4 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.9091, allocations: 35.91 kB / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003898/0.9095, allocations: 249 kB / 1.019 GB, free: 156 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001479/0.9097, allocations: 46.48 kB / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.841e-05/0.9098, allocations: 24.91 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.9098, allocations: 0 / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.686e-05/0.9098, allocations: 38.44 kB / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of pre-optimization done (n=2): time 7.82e-07/0.9098, allocations: 0 / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of matching and sorting (n=2): time 0.0003943/0.9102, allocations: 89.62 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.611e-05/0.9103, allocations: 55.41 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.957e-05/0.9103, allocations: 97.86 kB / 1.019 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.9104, allocations: 25.7 kB / 1.019 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.886e-05/0.9104, allocations: 80.14 kB / 1.019 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.573e-05/0.9105, allocations: 11.84 kB / 1.019 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-05/0.9105, allocations: 17.7 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.764e-05/0.9106, allocations: 315 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.882e-05/0.9107, allocations: 19.98 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.512e-05/0.9108, allocations: 19.91 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001607/0.911, allocations: 44.77 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.911, allocations: 0 / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002004/0.9112, allocations: 73.66 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.9112, allocations: 8 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.9112, allocations: 0 / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.9112, allocations: 0 / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.9113, allocations: 7.984 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.9114, allocations: 4 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.542e-05/0.9114, allocations: 7.984 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.03e-06/0.9114, allocations: 0 / 1.02 GB, free: 15.1 MB / 0.7794 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.264e-05/0.9115, allocations: 118.3 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.559e-05/0.9116, allocations: 7.906 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.161e-05/0.9116, allocations: 3.125 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.9116, allocations: 7.922 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.9116, allocations: 0 / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.9116, allocations: 0 / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001563/0.9118, allocations: 157.6 kB / 1.02 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.9118, allocations: 0 / 1.02 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.093e-05/0.9118, allocations: 11.98 kB / 1.02 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.9119, allocations: 4 kB / 1.02 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-06/0.9119, allocations: 0 / 1.02 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.9119, allocations: 0 / 1.02 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.9119, allocations: 4 kB / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002508/0.9121, allocations: 171.4 kB / 1.02 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.262e-05/0.9122, allocations: 81.05 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.9122, allocations: 4.031 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.188e-05/0.9123, allocations: 4 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.426e-05/0.9124, allocations: 11.98 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-06/0.9124, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.748e-05/0.9124, allocations: 83.27 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9124, allocations: 3.938 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002181/0.9126, allocations: 8 kB / 1.021 GB, free: 14.34 MB / 0.7794 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.0001063/0.9127, allocations: 95.58 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002236/0.913, allocations: 43.95 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.913, allocations: 0 / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.32e-05/0.9131, allocations: 19.98 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.9134, allocations: 7.938 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003462/0.9138, allocations: 115.3 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000266/0.914, allocations: 0.6731 MB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.474e-05/0.9141, allocations: 7.875 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.568e-05/0.9141, allocations: 15.42 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of SimCode: time 6.02e-07/0.9141, allocations: 0 / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of Templates: time 0.002776/0.9169, allocations: 0.5065 MB / 1.022 GB, free: 12.8 MB / 0.7794 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