Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001252/0.001252, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001235/0.001235, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.317/1.317, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.648/2.648, allocations: 482.4 MB / 0.7553 GB, free: 6.957 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 61.11 kB / 0.9245 GB, free: 15.94 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6996/0.7015, allocations: 162.2 MB / 1.083 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.00182/0.7034, allocations: 0.6167 MB / 1.084 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008406/0.7042, allocations: 0.8213 MB / 1.084 GB, free: 0.6211 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.406e-05/0.7043, allocations: 0 / 1.084 GB, free: 0.6211 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.898e-05/0.7043, allocations: 6.047 kB / 1.084 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.034e-05/0.7044, allocations: 3.938 kB / 1.084 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001335/0.7045, allocations: 10.67 kB / 1.084 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.752e-05/0.7046, allocations: 26.38 kB / 1.084 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.7047, allocations: 4.453 kB / 1.084 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.158e-05/0.7048, allocations: 18.16 kB / 1.084 GB, free: 0.5859 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.742e-05/0.7048, allocations: 11.73 kB / 1.084 GB, free: 0.582 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.825e-05/0.7048, allocations: 1.844 kB / 1.084 GB, free: 0.582 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.17e-05/0.7049, allocations: 2.469 kB / 1.084 GB, free: 0.582 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.788e-05/0.7049, allocations: 14.2 kB / 1.084 GB, free: 0.5703 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.702e-05/0.7049, allocations: 7.031 kB / 1.084 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 7.902e-05/0.705, allocations: 26.5 kB / 1.084 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.705, allocations: 0.7812 kB / 1.084 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.122e-06/0.705, allocations: 0 / 1.084 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.705, allocations: 0.6562 kB / 1.084 GB, free: 0.5547 MB / 0.8262 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.0003919/0.7054, allocations: 339.8 kB / 1.085 GB, free: 200 kB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.7055, allocations: 9.812 kB / 1.085 GB, free: 200 kB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.412e-05/0.7055, allocations: 1.688 kB / 1.085 GB, free: 200 kB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.7056, allocations: 166.9 kB / 1.085 GB, free: 16 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.092e-05/0.7056, allocations: 5.969 kB / 1.085 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.628e-06/0.7056, allocations: 2.125 kB / 1.085 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001911/0.7058, allocations: 55.34 kB / 1.085 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.7059, allocations: 4.172 kB / 1.085 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.7059, allocations: 5.125 kB / 1.085 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.476e-06/0.7059, allocations: 0 / 1.085 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.7061, allocations: 44.34 kB / 1.085 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003778/0.7065, allocations: 243.3 kB / 1.085 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001431/0.7066, allocations: 47.25 kB / 1.085 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.924e-05/0.7067, allocations: 25.23 kB / 1.085 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.7067, allocations: 3.938 kB / 1.085 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.7068, allocations: 36.12 kB / 1.085 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.7068, allocations: 0 / 1.085 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0003866/0.7072, allocations: 92.14 kB / 1.085 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.386e-05/0.7072, allocations: 56.09 kB / 1.086 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.584e-05/0.7073, allocations: 101.2 kB / 1.086 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.627e-05/0.7073, allocations: 29.83 kB / 1.086 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.992e-05/0.7074, allocations: 81.78 kB / 1.086 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/0.7074, allocations: 6.125 kB / 1.086 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.905e-05/0.7075, allocations: 17.02 kB / 1.086 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.7076, allocations: 313 kB / 1.086 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.21e-05/0.7077, allocations: 18.7 kB / 1.086 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.078e-05/0.7078, allocations: 19.91 kB / 1.086 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001646/0.708, allocations: 46.95 kB / 1.086 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.708, allocations: 0 / 1.086 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002118/0.7082, allocations: 77.8 kB / 1.086 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.7082, allocations: 5.391 kB / 1.086 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.7082, allocations: 0 / 1.086 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.7083, allocations: 5.5 kB / 1.086 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.889e-05/0.7084, allocations: 9.609 kB / 1.086 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.7084, allocations: 0 / 1.086 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.231e-05/0.7084, allocations: 6.438 kB / 1.086 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.261e-06/0.7084, allocations: 1.422 kB / 1.086 GB, free: 14.82 MB / 0.8419 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 9.436e-05/0.7085, allocations: 116.5 kB / 1.086 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.404e-05/0.7086, allocations: 1.984 kB / 1.086 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.522e-05/0.7086, allocations: 4.156 kB / 1.086 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.7086, allocations: 5.094 kB / 1.086 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.7086, allocations: 0 / 1.086 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.7086, allocations: 1.125 kB / 1.086 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002178/0.7088, allocations: 161.1 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.7088, allocations: 0 / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.942e-05/0.7089, allocations: 8.672 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.7089, allocations: 1.922 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.7089, allocations: 1.406 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.7089, allocations: 0 / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.7089, allocations: 0.7969 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002761/0.7092, allocations: 177.2 kB / 1.087 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.248e-05/0.7093, allocations: 81.86 kB / 1.087 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.328e-05/0.7093, allocations: 1.344 kB / 1.087 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.248e-05/0.7094, allocations: 10.92 kB / 1.087 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.74e-05/0.7095, allocations: 4.734 kB / 1.087 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/0.7095, allocations: 1.375 kB / 1.087 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.793e-05/0.7095, allocations: 87.89 kB / 1.087 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7095, allocations: 0 / 1.087 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000206/0.7097, allocations: 3.812 kB / 1.087 GB, free: 14.17 MB / 0.8419 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.000118/0.7099, allocations: 100.4 kB / 1.087 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002235/0.7101, allocations: 38.72 kB / 1.087 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.7101, allocations: 4.062 kB / 1.087 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.7102, allocations: 26.31 kB / 1.087 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002477/0.7105, allocations: 9.125 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003254/0.7108, allocations: 138.9 kB / 1.087 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.7111, allocations: 0.6762 MB / 1.088 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.334e-05/0.7112, allocations: 10.55 kB / 1.088 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of SimCode: time 2.5e-07/0.7112, allocations: 4.062 kB / 1.088 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of Templates: time 0.002039/0.7132, allocations: 0.602 MB / 1.088 GB, free: 13.17 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches