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.001109/0.001109, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.001246/0.001246, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 223.2 MB / 239.9 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.772/2.772, allocations: 436.5 MB / 0.7104 GB, free: 7.832 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003405, allocations: 8 kB / 0.8708 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8571/0.8574, allocations: 153.7 MB / 1.021 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.0009117/0.8584, allocations: 344.8 kB / 1.021 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009274/0.8593, allocations: 0.8118 MB / 1.022 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.817e-05/0.8594, allocations: 0 / 1.022 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.93e-05/0.8594, allocations: 3.984 kB / 1.022 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.735e-05/0.8595, allocations: 3.938 kB / 1.022 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001348/0.8596, allocations: 15.98 kB / 1.022 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.932e-05/0.8597, allocations: 15.92 kB / 1.022 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.181e-05/0.8598, allocations: 4 kB / 1.022 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.014e-05/0.8598, allocations: 15.97 kB / 1.022 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.129e-05/0.8599, allocations: 7.938 kB / 1.022 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.424e-05/0.8599, allocations: 0 / 1.022 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.08e-05/0.8599, allocations: 0 / 1.022 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.557e-05/0.86, allocations: 11.98 kB / 1.022 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.624e-05/0.86, allocations: 25.7 kB / 1.022 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 5.756e-05/0.8601, allocations: 15.97 kB / 1.022 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.8601, allocations: 0 / 1.022 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.993e-06/0.8601, allocations: 0 / 1.022 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.8601, allocations: 0 / 1.022 GB, free: 15.79 MB / 0.7794 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.0004865/0.8606, allocations: 341.3 kB / 1.022 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.8606, allocations: 11.98 kB / 1.022 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.384e-05/0.8607, allocations: 7.938 kB / 1.022 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001183/0.8608, allocations: 163.1 kB / 1.023 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/0.8608, allocations: 4 kB / 1.023 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/0.8609, allocations: 4 kB / 1.023 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/0.861, allocations: 57.62 kB / 1.023 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/0.8611, allocations: 0 / 1.023 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.8611, allocations: 0 / 1.023 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.8611, allocations: 0 / 1.023 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001889/0.8613, allocations: 51.95 kB / 1.023 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003779/0.8617, allocations: 260.8 kB / 1.023 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001341/0.8618, allocations: 42.56 kB / 1.023 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.161e-05/0.8618, allocations: 4.062 kB / 1.023 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.8619, allocations: 30.56 kB / 1.023 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.8619, allocations: 3.938 kB / 1.023 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0003818/0.8622, allocations: 117.5 kB / 1.023 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.351e-05/0.8623, allocations: 51.41 kB / 1.023 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.439e-05/0.8624, allocations: 97.86 kB / 1.023 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.8624, allocations: 25.7 kB / 1.023 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.755e-05/0.8625, allocations: 84.25 kB / 1.023 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.8625, allocations: 19.84 kB / 1.023 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.517e-06/0.8625, allocations: 0 / 1.023 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.8626, allocations: 310.8 kB / 1.024 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.802e-05/0.8627, allocations: 27.92 kB / 1.024 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.03e-05/0.8628, allocations: 23.97 kB / 1.024 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.307e-05/0.8629, allocations: 23.98 kB / 1.024 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.8629, allocations: 0 / 1.024 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002046/0.8631, allocations: 85.67 kB / 1.024 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.8631, allocations: 6.031 kB / 1.024 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.8631, allocations: 3.938 kB / 1.024 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.8631, allocations: 0 / 1.024 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.8633, allocations: 11.98 kB / 1.024 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.8633, allocations: 0 / 1.024 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.747e-05/0.8633, allocations: 11.98 kB / 1.024 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.079e-06/0.8633, allocations: 4.031 kB / 1.024 GB, free: 13.73 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.692e-05/0.8634, allocations: 115.7 kB / 1.024 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.245e-05/0.8635, allocations: 3.953 kB / 1.024 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.156e-05/0.8635, allocations: 3.125 kB / 1.024 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.8635, allocations: 0 / 1.024 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.8635, allocations: 0 / 1.024 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.8635, allocations: 0 / 1.024 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001459/0.8637, allocations: 165.7 kB / 1.024 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.8637, allocations: 0 / 1.024 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.12e-05/0.8637, allocations: 15.98 kB / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.8637, allocations: 3.953 kB / 1.024 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.233e-06/0.8638, allocations: 0 / 1.024 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.8638, allocations: 4 kB / 1.024 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.8638, allocations: 0 / 1.024 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002513/0.864, allocations: 179.5 kB / 1.024 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.9e-05/0.8641, allocations: 81.02 kB / 1.024 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.552e-05/0.8641, allocations: 3.953 kB / 1.024 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.192e-05/0.8642, allocations: 11.98 kB / 1.024 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.628e-05/0.8642, allocations: 7.984 kB / 1.024 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.8642, allocations: 0 / 1.024 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.362e-05/0.8643, allocations: 87.31 kB / 1.025 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8643, allocations: 0 / 1.025 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002067/0.8645, allocations: 7.938 kB / 1.025 GB, free: 12.96 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001031/0.8646, allocations: 95.25 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002237/0.8649, allocations: 51.95 kB / 1.025 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.8649, allocations: 3.938 kB / 1.025 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.763e-05/0.865, allocations: 31.91 kB / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001939/0.8652, allocations: 4 kB / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002871/0.8655, allocations: 108.8 kB / 1.025 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002396/0.8657, allocations: 0.677 MB / 1.025 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.027e-05/0.8658, allocations: 4 kB / 1.025 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.981e-05/0.8658, allocations: 7.438 kB / 1.025 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.8658, allocations: 0 / 1.025 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of Templates: time 0.00242/0.8682, allocations: 0.4943 MB / 1.026 GB, free: 11.43 MB / 0.7794 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches