Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_9_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_9_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.001498/0.001498, allocations: 108.5 kB / 16.41 MB, free: 6.512 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.00153/0.001529, allocations: 187 kB / 17.34 MB, free: 5.742 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.423/1.423, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.302/2.302, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 67.89 kB / 0.9515 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8086/0.8101, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001744/0.8119, allocations: 0.6198 MB / 1.089 GB, free: 5.125 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008603/0.8127, allocations: 0.8219 MB / 1.09 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.737e-05/0.8128, allocations: 0 / 1.09 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.504e-05/0.8128, allocations: 3.938 kB / 1.09 GB, free: 4.5 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.813e-05/0.8129, allocations: 1.188 kB / 1.09 GB, free: 4.5 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001387/0.813, allocations: 22.22 kB / 1.09 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.806e-05/0.8131, allocations: 26.3 kB / 1.09 GB, free: 4.473 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.8132, allocations: 4.891 kB / 1.09 GB, free: 4.473 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.779e-05/0.8133, allocations: 22.22 kB / 1.09 GB, free: 4.457 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.851e-05/0.8133, allocations: 15.16 kB / 1.09 GB, free: 4.449 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.615e-05/0.8134, allocations: 2.562 kB / 1.09 GB, free: 4.449 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.052e-05/0.8134, allocations: 2.062 kB / 1.09 GB, free: 4.449 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.508e-05/0.8134, allocations: 2.25 kB / 1.09 GB, free: 4.449 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.667e-05/0.8134, allocations: 11.31 kB / 1.09 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 8.398e-05/0.8135, allocations: 31.22 kB / 1.09 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.8135, allocations: 0.8438 kB / 1.09 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.413e-06/0.8135, allocations: 0 / 1.09 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.8135, allocations: 0 / 1.09 GB, free: 4.426 MB / 0.8575 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.0004048/0.8139, allocations: 334.3 kB / 1.09 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.814, allocations: 9.562 kB / 1.09 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.841e-05/0.814, allocations: 6.281 kB / 1.09 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.732e-05/0.8141, allocations: 166.4 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.8141, allocations: 5.734 kB / 1.091 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.8141, allocations: 2.344 kB / 1.091 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.8143, allocations: 51.25 kB / 1.091 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.8143, allocations: 8.125 kB / 1.091 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.8144, allocations: 9.844 kB / 1.091 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.8144, allocations: 0 / 1.091 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001938/0.8146, allocations: 34.94 kB / 1.091 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002793/0.8148, allocations: 248.8 kB / 1.091 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/0.815, allocations: 47.47 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.959e-05/0.8151, allocations: 20.72 kB / 1.091 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.8151, allocations: 0 / 1.091 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.64e-05/0.8151, allocations: 39.5 kB / 1.091 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.8151, allocations: 0 / 1.091 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003829/0.8155, allocations: 92.38 kB / 1.091 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.347e-05/0.8156, allocations: 51.41 kB / 1.091 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.138e-05/0.8156, allocations: 97.34 kB / 1.091 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.8156, allocations: 27.61 kB / 1.091 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.879e-05/0.8157, allocations: 88.56 kB / 1.091 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.508e-05/0.8157, allocations: 1.344 kB / 1.091 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.143e-05/0.8157, allocations: 13.92 kB / 1.091 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.265e-05/0.8158, allocations: 316.9 kB / 1.092 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.057e-05/0.8159, allocations: 18.83 kB / 1.092 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.04e-05/0.816, allocations: 24.03 kB / 1.092 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001622/0.8161, allocations: 38.61 kB / 1.092 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.8161, allocations: 0 / 1.092 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002041/0.8164, allocations: 77.91 kB / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.8164, allocations: 9.094 kB / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.8164, allocations: 1.891 kB / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.8164, allocations: 0 / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.8165, allocations: 9.375 kB / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.8165, allocations: 0 / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.475e-05/0.8166, allocations: 10.62 kB / 1.092 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.842e-06/0.8166, allocations: 1.469 kB / 1.092 GB, free: 2.711 MB / 0.8575 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 5.527e-05/0.8167, allocations: 120.7 kB / 1.092 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.386e-05/0.8167, allocations: 1.469 kB / 1.092 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.014e-05/0.8167, allocations: 8.062 kB / 1.092 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.8167, allocations: 5.906 kB / 1.092 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.8167, allocations: 0 / 1.092 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.8167, allocations: 0 / 1.092 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001236/0.8169, allocations: 161.7 kB / 1.092 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.8169, allocations: 0.7031 kB / 1.092 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.092e-05/0.8169, allocations: 9.562 kB / 1.092 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.8169, allocations: 0 / 1.092 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.817, allocations: 5.75 kB / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.817, allocations: 0 / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.817, allocations: 0 / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002256/0.8172, allocations: 165.2 kB / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.852e-05/0.8172, allocations: 79.62 kB / 1.092 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.429e-05/0.8172, allocations: 0.5625 kB / 1.092 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.287e-05/0.8173, allocations: 14.86 kB / 1.092 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.455e-05/0.8174, allocations: 8.719 kB / 1.092 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-06/0.8174, allocations: 5.5 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.512e-05/0.8174, allocations: 79.78 kB / 1.093 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8174, allocations: 0 / 1.093 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002162/0.8177, allocations: 3.75 kB / 1.093 GB, free: 2.051 MB / 0.8575 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.0001013/0.8178, allocations: 101.1 kB / 1.093 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002389/0.818, allocations: 46.11 kB / 1.093 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.818, allocations: 0 / 1.093 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.702e-05/0.8181, allocations: 22.81 kB / 1.093 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.8185, allocations: 7.172 kB / 1.093 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000307/0.8188, allocations: 138.9 kB / 1.093 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001102/0.8189, allocations: 0.6803 MB / 1.094 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.214e-05/0.8189, allocations: 14.06 kB / 1.094 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.8189, allocations: 0 / 1.094 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of Templates: time 0.002221/0.8212, allocations: 0.5985 MB / 1.094 GB, free: 1.055 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches