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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001316/0.001316, allocations: 112.1 kB / 16.41 MB, free: 6.465 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.001261/0.001261, allocations: 189.7 kB / 17.34 MB, free: 5.715 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.316/1.316, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.465/2.465, allocations: 461.9 MB / 0.7354 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 63.89 kB / 1.055 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7073/0.7086, allocations: 157.4 MB / 1.208 GB, free: 13.79 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.0017/0.7103, allocations: 0.6208 MB / 1.209 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009579/0.7113, allocations: 0.8312 MB / 1.21 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.44e-05/0.7114, allocations: 0 / 1.21 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.11e-05/0.7115, allocations: 0 / 1.21 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.342e-05/0.7115, allocations: 3.938 kB / 1.21 GB, free: 12.33 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001719/0.7117, allocations: 15.98 kB / 1.21 GB, free: 12.32 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.083e-05/0.7118, allocations: 23.92 kB / 1.21 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.7119, allocations: 4 kB / 1.21 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.655e-05/0.712, allocations: 15.92 kB / 1.21 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.734e-05/0.7121, allocations: 19.97 kB / 1.21 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.425e-05/0.7121, allocations: 4 kB / 1.21 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.097e-05/0.7121, allocations: 0 / 1.21 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.617e-05/0.7121, allocations: 4 kB / 1.21 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.983e-05/0.7122, allocations: 7.938 kB / 1.21 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001001/0.7123, allocations: 27.89 kB / 1.21 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.7123, allocations: 0 / 1.21 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.697e-06/0.7123, allocations: 0 / 1.21 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.7123, allocations: 3.938 kB / 1.21 GB, free: 12.21 MB / 0.9356 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.0005556/0.7129, allocations: 339.5 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.7129, allocations: 8.031 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.031e-05/0.713, allocations: 4.938 kB / 1.21 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.7131, allocations: 166.2 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.727e-05/0.7132, allocations: 4.375 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.232e-05/0.7132, allocations: 4.375 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002022/0.7134, allocations: 54.22 kB / 1.211 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.7134, allocations: 4.125 kB / 1.211 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.317e-05/0.7134, allocations: 3.938 kB / 1.211 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.7134, allocations: 4 kB / 1.211 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.7136, allocations: 35.95 kB / 1.211 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004357/0.7141, allocations: 244.9 kB / 1.211 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001462/0.7142, allocations: 50.53 kB / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.47e-05/0.7143, allocations: 20.91 kB / 1.211 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.39e-05/0.7144, allocations: 0 / 1.211 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.7144, allocations: 42.55 kB / 1.211 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 8.91e-07/0.7144, allocations: 0 / 1.211 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0003694/0.7148, allocations: 89.48 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.7148, allocations: 55.47 kB / 1.211 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.19e-05/0.7149, allocations: 97.86 kB / 1.211 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.7149, allocations: 25.7 kB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.854e-05/0.715, allocations: 92.12 kB / 1.211 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.715, allocations: 3.938 kB / 1.211 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.391e-05/0.715, allocations: 13.72 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.7151, allocations: 314.8 kB / 1.212 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.548e-05/0.7152, allocations: 15.97 kB / 1.212 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.583e-05/0.7153, allocations: 23.98 kB / 1.212 GB, free: 10.31 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001622/0.7155, allocations: 40.81 kB / 1.212 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.7155, allocations: 0 / 1.212 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002001/0.7157, allocations: 81.44 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.7157, allocations: 8.094 kB / 1.212 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.7157, allocations: 0 / 1.212 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.7157, allocations: 0 / 1.212 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.895e-05/0.7158, allocations: 11.98 kB / 1.212 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.7159, allocations: 0 / 1.212 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.184e-05/0.7159, allocations: 4 kB / 1.212 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.909e-06/0.7159, allocations: 192 / 1.212 GB, free: 10.16 MB / 0.9356 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 7.158e-05/0.716, allocations: 113.8 kB / 1.212 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.444e-05/0.716, allocations: 3.984 kB / 1.212 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.991e-05/0.7161, allocations: 15.11 kB / 1.212 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.7161, allocations: 0 / 1.212 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.7161, allocations: 4 kB / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.7161, allocations: 4 kB / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001444/0.7162, allocations: 157.6 kB / 1.212 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.7162, allocations: 3.984 kB / 1.212 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.403e-05/0.7163, allocations: 4 kB / 1.212 GB, free: 9.797 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.7163, allocations: 4 kB / 1.212 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.232e-06/0.7163, allocations: 0 / 1.212 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.7163, allocations: 7.922 kB / 1.212 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.7163, allocations: 7.938 kB / 1.212 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002393/0.7166, allocations: 163.5 kB / 1.212 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.981e-05/0.7166, allocations: 81.02 kB / 1.212 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.7167, allocations: 4 kB / 1.212 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.015e-05/0.7167, allocations: 3.984 kB / 1.212 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.113e-05/0.7168, allocations: 15.97 kB / 1.212 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-06/0.7168, allocations: 0 / 1.212 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.903e-05/0.7168, allocations: 83.27 kB / 1.212 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.6e-07/0.7168, allocations: 0 / 1.212 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002077/0.7171, allocations: 4 kB / 1.212 GB, free: 9.395 MB / 0.9356 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.0001011/0.7172, allocations: 97.78 kB / 1.212 GB, free: 9.289 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000225/0.7174, allocations: 51.89 kB / 1.213 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.7174, allocations: 0 / 1.213 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.582e-05/0.7175, allocations: 19.98 kB / 1.213 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002571/0.7178, allocations: 7.938 kB / 1.213 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000294/0.7181, allocations: 139.2 kB / 1.213 GB, free: 9.039 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.7183, allocations: 0.6729 MB / 1.213 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.063e-05/0.7183, allocations: 15.56 kB / 1.213 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of SimCode: time 1.91e-07/0.7183, allocations: 0 / 1.213 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of Templates: time 0.001703/0.72, allocations: 0.6 MB / 1.214 GB, free: 7.727 MB / 0.9356 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=480 -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