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.001214/0.001215, allocations: 105.2 kB / 16.4 MB, free: 6.422 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.001162/0.001162, allocations: 189.5 kB / 17.34 MB, free: 5.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.618/1.618, allocations: 222.9 MB / 241 MB, free: 15.05 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.58/2.58, allocations: 437.1 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 63.91 kB / 1.019 GB, free: 9.406 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.016/1.018, allocations: 151.6 MB / 1.167 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001878/1.02, allocations: 0.6215 MB / 1.168 GB, free: 3.234 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009969/1.021, allocations: 0.8375 MB / 1.169 GB, free: 2.387 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.763e-05/1.021, allocations: 0 / 1.169 GB, free: 2.387 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.806e-05/1.021, allocations: 0 / 1.169 GB, free: 2.387 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.179e-05/1.021, allocations: 3.938 kB / 1.169 GB, free: 2.383 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001511/1.021, allocations: 15.97 kB / 1.169 GB, free: 2.367 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 8.012e-05/1.021, allocations: 27.92 kB / 1.169 GB, free: 2.34 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/1.021, allocations: 4 kB / 1.169 GB, free: 2.336 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 6.438e-05/1.021, allocations: 15.92 kB / 1.169 GB, free: 2.32 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.056e-05/1.021, allocations: 11.98 kB / 1.169 GB, free: 2.309 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.828e-05/1.021, allocations: 4 kB / 1.169 GB, free: 2.305 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.002e-05/1.021, allocations: 4 kB / 1.169 GB, free: 2.301 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.173e-05/1.021, allocations: 7.984 kB / 1.169 GB, free: 2.293 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.498e-05/1.021, allocations: 7.938 kB / 1.169 GB, free: 2.285 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001002/1.022, allocations: 31.83 kB / 1.169 GB, free: 2.254 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/1.022, allocations: 0 / 1.169 GB, free: 2.254 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.683e-06/1.022, allocations: 0 / 1.169 GB, free: 2.254 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.298e-06/1.022, allocations: 0 / 1.169 GB, free: 2.254 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.0005506/1.022, allocations: 339 kB / 1.169 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/1.022, allocations: 12.03 kB / 1.169 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.703e-05/1.022, allocations: 0.9375 kB / 1.169 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001846/1.022, allocations: 173.3 kB / 1.169 GB, free: 1.656 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.041e-05/1.022, allocations: 384 / 1.169 GB, free: 1.656 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.133e-05/1.022, allocations: 4.312 kB / 1.169 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002091/1.023, allocations: 50.23 kB / 1.169 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/1.023, allocations: 4.172 kB / 1.169 GB, free: 1.594 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/1.023, allocations: 3.938 kB / 1.169 GB, free: 1.59 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/1.023, allocations: 4 kB / 1.169 GB, free: 1.586 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001839/1.023, allocations: 39.89 kB / 1.169 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004069/1.023, allocations: 253 kB / 1.17 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001519/1.024, allocations: 38.5 kB / 1.17 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/1.024, allocations: 32.89 kB / 1.17 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.41e-05/1.024, allocations: 0 / 1.17 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.364e-05/1.024, allocations: 30.56 kB / 1.17 GB, free: 1.129 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 4.459e-06/1.024, allocations: 0 / 1.17 GB, free: 1.129 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0003841/1.024, allocations: 89.52 kB / 1.17 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.831e-05/1.024, allocations: 55.41 kB / 1.17 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.322e-05/1.024, allocations: 106 kB / 1.17 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/1.024, allocations: 25.7 kB / 1.17 GB, free: 0.8242 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 6.148e-05/1.024, allocations: 84.08 kB / 1.17 GB, free: 0.7383 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.209e-05/1.024, allocations: 7.938 kB / 1.17 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.761e-05/1.024, allocations: 17.72 kB / 1.17 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001388/1.025, allocations: 310.8 kB / 1.17 GB, free: 404 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.437e-05/1.025, allocations: 23.97 kB / 1.17 GB, free: 380 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.504e-05/1.025, allocations: 15.98 kB / 1.17 GB, free: 364 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001847/1.025, allocations: 48.75 kB / 1.171 GB, free: 312 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/1.025, allocations: 0 / 1.171 GB, free: 312 kB / 0.8887 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002117/1.025, allocations: 69.59 kB / 1.171 GB, free: 236 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/1.025, allocations: 8 kB / 1.171 GB, free: 228 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/1.025, allocations: 4.094 kB / 1.171 GB, free: 224 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/1.025, allocations: 0 / 1.171 GB, free: 224 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/1.025, allocations: 7.984 kB / 1.171 GB, free: 216 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/1.025, allocations: 4 kB / 1.171 GB, free: 212 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.498e-05/1.025, allocations: 3.953 kB / 1.171 GB, free: 208 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-06/1.025, allocations: 4 kB / 1.171 GB, free: 204 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 9.686e-05/1.026, allocations: 117.8 kB / 1.171 GB, free: 76 kB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.504e-05/1.026, allocations: 4 kB / 1.171 GB, free: 72 kB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.328e-05/1.026, allocations: 11.12 kB / 1.171 GB, free: 56 kB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/1.026, allocations: 0 / 1.171 GB, free: 56 kB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/1.026, allocations: 0 / 1.171 GB, free: 56 kB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/1.026, allocations: 0 / 1.171 GB, free: 56 kB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/1.026, allocations: 161.6 kB / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/1.026, allocations: 0 / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.233e-05/1.026, allocations: 15.92 kB / 1.171 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/1.026, allocations: 0 / 1.171 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/1.026, allocations: 3.938 kB / 1.171 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/1.026, allocations: 0 / 1.171 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/1.026, allocations: 4 kB / 1.171 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/1.026, allocations: 167.5 kB / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.031e-05/1.026, allocations: 77.11 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/1.026, allocations: 0 / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.083e-05/1.026, allocations: 11.92 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.829e-05/1.026, allocations: 12.03 kB / 1.171 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.531e-06/1.026, allocations: 3.984 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.97e-05/1.026, allocations: 83.47 kB / 1.171 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/1.026, allocations: 0 / 1.171 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002132/1.027, allocations: 4 kB / 1.171 GB, free: 15.44 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.0001444/1.027, allocations: 95.25 kB / 1.171 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002461/1.027, allocations: 47.89 kB / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/1.027, allocations: 0 / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.381e-05/1.027, allocations: 19.98 kB / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003213/1.028, allocations: 15.86 kB / 1.171 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003277/1.028, allocations: 131.1 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002587/1.028, allocations: 0.673 MB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.765e-05/1.028, allocations: 15.42 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of SimCode: time 2.5e-07/1.028, allocations: 4.125 kB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of Templates: time 0.001923/1.03, allocations: 0.6013 MB / 1.173 GB, free: 13.77 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/jenkins1/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