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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001406/0.001406, allocations: 107 kB / 16.36 MB, free: 6.336 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.001237/0.001237, allocations: 195.3 kB / 17.29 MB, free: 5.883 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.439/1.439, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.507/2.507, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001242, allocations: 68.19 kB / 0.8773 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4189/0.4202, allocations: 153 MB / 1.027 GB, free: 2.059 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001876/0.4221, allocations: 0.6347 MB / 1.027 GB, free: 1.43 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0008658/0.423, allocations: 0.8297 MB / 1.028 GB, free: 0.5898 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.043e-05/0.423, allocations: 0 / 1.028 GB, free: 0.5898 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.281e-05/0.4231, allocations: 3.938 kB / 1.028 GB, free: 0.5859 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.483e-05/0.4231, allocations: 4 kB / 1.028 GB, free: 0.582 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001553/0.4233, allocations: 19.91 kB / 1.028 GB, free: 0.5625 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.708e-05/0.4234, allocations: 19.98 kB / 1.028 GB, free: 0.543 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.4235, allocations: 8 kB / 1.028 GB, free: 0.5352 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.354e-05/0.4236, allocations: 15.86 kB / 1.028 GB, free: 0.5195 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.024e-05/0.4236, allocations: 15.92 kB / 1.028 GB, free: 0.5039 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.114e-05/0.4236, allocations: 8 kB / 1.028 GB, free: 0.4961 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.003e-05/0.4237, allocations: 0 / 1.028 GB, free: 0.4961 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.975e-05/0.4237, allocations: 7.984 kB / 1.028 GB, free: 500 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.945e-05/0.4237, allocations: 15.94 kB / 1.028 GB, free: 484 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 7.677e-05/0.4238, allocations: 19.95 kB / 1.028 GB, free: 464 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.4238, allocations: 0 / 1.028 GB, free: 464 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.693e-06/0.4238, allocations: 0 / 1.028 GB, free: 464 kB / 0.795 GB Notification: Performance of Transformations before backend: time 9.268e-06/0.4238, allocations: 0 / 1.028 GB, free: 464 kB / 0.795 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.0004684/0.4243, allocations: 331.6 kB / 1.029 GB, free: 80 kB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.4243, allocations: 12.03 kB / 1.029 GB, free: 68 kB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.926e-05/0.4244, allocations: 8.844 kB / 1.029 GB, free: 60 kB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.4245, allocations: 164.3 kB / 1.029 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.606e-05/0.4246, allocations: 8.297 kB / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.015e-05/0.4246, allocations: 384 / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.4248, allocations: 54.17 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.4248, allocations: 4.188 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.4248, allocations: 3.938 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.4248, allocations: 3.984 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.425, allocations: 43.95 kB / 1.029 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003481/0.4253, allocations: 249 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001413/0.4255, allocations: 38.5 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.282e-05/0.4256, allocations: 32.89 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.936e-05/0.4256, allocations: 3.938 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.4256, allocations: 30.56 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.4256, allocations: 0 / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003658/0.426, allocations: 85.64 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.4261, allocations: 55.47 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.819e-05/0.4262, allocations: 105.8 kB / 1.029 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.4262, allocations: 25.7 kB / 1.029 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.131e-05/0.4263, allocations: 84.05 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.23e-05/0.4263, allocations: 8 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.051e-05/0.4263, allocations: 9.719 kB / 1.03 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.4265, allocations: 314.8 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9e-05/0.4265, allocations: 19.97 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.428e-05/0.4266, allocations: 23.92 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001558/0.4268, allocations: 44.81 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.4268, allocations: 0 / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002223/0.427, allocations: 69.59 kB / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.4271, allocations: 4.094 kB / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.4271, allocations: 4 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.4271, allocations: 0 / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.4272, allocations: 15.98 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.637e-06/0.4272, allocations: 0 / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.901e-05/0.4273, allocations: 7.906 kB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.254e-06/0.4273, allocations: 0 / 1.03 GB, free: 14.4 MB / 0.8106 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 0.0001179/0.4275, allocations: 125.6 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.657e-05/0.4275, allocations: 4 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.027e-05/0.4275, allocations: 7.125 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-06/0.4275, allocations: 3.938 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.4275, allocations: 0 / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.4275, allocations: 0 / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002036/0.4278, allocations: 165.6 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.4278, allocations: 0 / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.836e-05/0.4278, allocations: 4 kB / 1.03 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.4279, allocations: 3.984 kB / 1.03 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.4279, allocations: 4 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.4279, allocations: 4 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4279, allocations: 4 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002529/0.4281, allocations: 159.5 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.192e-05/0.4282, allocations: 77.11 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.578e-05/0.4282, allocations: 4 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.114e-05/0.4283, allocations: 7.984 kB / 1.031 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.597e-05/0.4284, allocations: 11.97 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.4284, allocations: 0 / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.231e-05/0.4284, allocations: 87.27 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4284, allocations: 0 / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002323/0.4287, allocations: 4 kB / 1.031 GB, free: 13.64 MB / 0.8106 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.0001257/0.4288, allocations: 95.25 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002303/0.429, allocations: 47.89 kB / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4291, allocations: 0 / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.191e-05/0.4292, allocations: 19.98 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/0.4294, allocations: 11.92 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003534/0.4298, allocations: 117.4 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.4301, allocations: 0.6729 MB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.243e-05/0.4301, allocations: 12.11 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.115e-05/0.4301, allocations: 11.44 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of SimCode: time 2.1e-07/0.4301, allocations: 0 / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of Templates: time 0.002913/0.4331, allocations: 0.5907 MB / 1.032 GB, free: 12.01 MB / 0.8106 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 -s gbode -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