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.001323/0.001323, allocations: 107 kB / 16.41 MB, free: 6.5 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.001299/0.001299, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.6/1.6, allocations: 222.9 MB / 241 MB, free: 15.16 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.81/2.81, allocations: 437.1 MB / 0.7112 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002047/0.002047, allocations: 64.14 kB / 1.019 GB, free: 9.426 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9859/0.9879, allocations: 151.6 MB / 1.167 GB, free: 3.879 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002041/0.99, allocations: 0.6292 MB / 1.168 GB, free: 3.25 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00105/0.9911, allocations: 0.8297 MB / 1.169 GB, free: 2.41 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.825e-05/0.9911, allocations: 0 / 1.169 GB, free: 2.41 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.697e-05/0.9912, allocations: 0 / 1.169 GB, free: 2.41 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.476e-05/0.9913, allocations: 11.92 kB / 1.169 GB, free: 2.398 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001442/0.9914, allocations: 11.98 kB / 1.169 GB, free: 2.387 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 8.197e-05/0.9915, allocations: 27.92 kB / 1.169 GB, free: 2.359 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.9916, allocations: 11.98 kB / 1.169 GB, free: 2.348 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 6.095e-05/0.9917, allocations: 7.938 kB / 1.169 GB, free: 2.34 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.138e-05/0.9918, allocations: 11.98 kB / 1.169 GB, free: 2.328 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.9918, allocations: 0 / 1.169 GB, free: 2.328 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 9.938e-06/0.9918, allocations: 4 kB / 1.169 GB, free: 2.324 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.069e-05/0.9918, allocations: 11.92 kB / 1.169 GB, free: 2.312 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.371e-05/0.9919, allocations: 11.98 kB / 1.169 GB, free: 2.301 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 9.446e-05/0.992, allocations: 27.84 kB / 1.169 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.992, allocations: 0 / 1.169 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.713e-06/0.992, allocations: 0 / 1.169 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.992, allocations: 0 / 1.169 GB, free: 2.273 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.0005174/0.9925, allocations: 335 kB / 1.169 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.9925, allocations: 12.03 kB / 1.169 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.246e-05/0.9926, allocations: 0.9375 kB / 1.169 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.9927, allocations: 169.3 kB / 1.169 GB, free: 1.684 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.9928, allocations: 8.375 kB / 1.169 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.686e-06/0.9928, allocations: 384 / 1.169 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001798/0.993, allocations: 50.23 kB / 1.169 GB, free: 1.621 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.993, allocations: 4.172 kB / 1.169 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.317e-05/0.993, allocations: 7.938 kB / 1.169 GB, free: 1.609 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.993, allocations: 0 / 1.169 GB, free: 1.609 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001781/0.9932, allocations: 39.89 kB / 1.169 GB, free: 1.57 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003985/0.9936, allocations: 257 kB / 1.17 GB, free: 1.27 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001417/0.9938, allocations: 42.44 kB / 1.17 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.566e-05/0.9939, allocations: 32.83 kB / 1.17 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.269e-05/0.9939, allocations: 0 / 1.17 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.9939, allocations: 30.56 kB / 1.17 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.9939, allocations: 4 kB / 1.17 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0003749/0.9943, allocations: 85.58 kB / 1.17 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.9944, allocations: 51.41 kB / 1.17 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.315e-05/0.9945, allocations: 105.8 kB / 1.17 GB, free: 0.875 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.9945, allocations: 25.7 kB / 1.17 GB, free: 0.8438 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 5.572e-05/0.9945, allocations: 84.08 kB / 1.17 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.901e-05/0.9946, allocations: 12.08 kB / 1.17 GB, free: 0.7461 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.631e-05/0.9946, allocations: 13.72 kB / 1.17 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.9948, allocations: 314.8 kB / 1.17 GB, free: 420 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.794e-05/0.9948, allocations: 19.98 kB / 1.17 GB, free: 400 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.014e-05/0.9949, allocations: 15.98 kB / 1.17 GB, free: 384 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001762/0.9951, allocations: 48.81 kB / 1.171 GB, free: 332 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.9951, allocations: 0 / 1.171 GB, free: 332 kB / 0.8887 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002105/0.9953, allocations: 69.59 kB / 1.171 GB, free: 256 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.9954, allocations: 8 kB / 1.171 GB, free: 248 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.9954, allocations: 0 / 1.171 GB, free: 248 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.9954, allocations: 0 / 1.171 GB, free: 248 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.9955, allocations: 7.984 kB / 1.171 GB, free: 240 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.9955, allocations: 4.031 kB / 1.171 GB, free: 236 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.732e-05/0.9956, allocations: 11.94 kB / 1.171 GB, free: 224 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.9956, allocations: 4 kB / 1.171 GB, free: 220 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.169e-05/0.9957, allocations: 113.8 kB / 1.171 GB, free: 96 kB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.328e-05/0.9957, allocations: 0 / 1.171 GB, free: 96 kB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.099e-05/0.9958, allocations: 7.125 kB / 1.171 GB, free: 84 kB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.9958, allocations: 0 / 1.171 GB, free: 84 kB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.9958, allocations: 0 / 1.171 GB, free: 84 kB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.9958, allocations: 0 / 1.171 GB, free: 84 kB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001998/0.996, allocations: 169.6 kB / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.996, allocations: 0 / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.637e-05/0.9961, allocations: 19.92 kB / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.9961, allocations: 0 / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.9961, allocations: 0 / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.9961, allocations: 0 / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.9961, allocations: 3.938 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002801/0.9964, allocations: 171.5 kB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.026e-05/0.9965, allocations: 77.11 kB / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.9965, allocations: 0 / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.601e-05/0.9966, allocations: 7.984 kB / 1.171 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.353e-05/0.9966, allocations: 7.922 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.9967, allocations: 4 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.77e-05/0.9967, allocations: 83.28 kB / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9967, allocations: 0 / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002164/0.9969, allocations: 8.031 kB / 1.171 GB, free: 15.46 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.0001292/0.9971, allocations: 95.58 kB / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002388/0.9973, allocations: 47.89 kB / 1.171 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.9973, allocations: 0 / 1.171 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.425e-05/0.9974, allocations: 19.97 kB / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003088/0.9977, allocations: 16.06 kB / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000338/0.9981, allocations: 105.4 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.9984, allocations: 0.6768 MB / 1.172 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.296e-05/0.9985, allocations: 4 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.12e-05/0.9985, allocations: 7.438 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of SimCode: time 2.21e-07/0.9985, allocations: 0 / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of Templates: time 0.003156/1.002, allocations: 0.6051 MB / 1.173 GB, free: 13.82 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 -s cvode -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