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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0009824/0.0009824, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001256/0.001256, allocations: 168.7 kB / 15.95 MB, free: 204 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.489/1.489, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.89/2.89, allocations: 437.7 MB / 0.7117 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004042/0.0004044, allocations: 11.94 kB / 0.8722 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7572/0.7576, allocations: 153.8 MB / 1.022 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.000799/0.7584, allocations: 349 kB / 1.023 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.000817/0.7593, allocations: 0.808 MB / 1.024 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.617e-05/0.7593, allocations: 3.938 kB / 1.024 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.68e-05/0.7593, allocations: 3.938 kB / 1.024 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.187e-05/0.7594, allocations: 0 / 1.024 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000123/0.7595, allocations: 15.98 kB / 1.024 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.898e-05/0.7596, allocations: 19.94 kB / 1.024 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.484e-05/0.7597, allocations: 7.984 kB / 1.024 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.167e-05/0.7597, allocations: 19.92 kB / 1.024 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.413e-05/0.7598, allocations: 7.984 kB / 1.024 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.7598, allocations: 0 / 1.024 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.764e-06/0.7598, allocations: 0 / 1.024 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.417e-05/0.7598, allocations: 11.94 kB / 1.024 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.116e-05/0.7599, allocations: 29.64 kB / 1.024 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 4.751e-05/0.7599, allocations: 15.95 kB / 1.024 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.7599, allocations: 0 / 1.024 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.633e-06/0.7599, allocations: 0 / 1.024 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.706e-06/0.7599, allocations: 0 / 1.024 GB, free: 14.76 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.0003837/0.7603, allocations: 341.3 kB / 1.024 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.7604, allocations: 8.562 kB / 1.024 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.585e-05/0.7604, allocations: 4 kB / 1.024 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.7605, allocations: 159.1 kB / 1.024 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.7606, allocations: 0 / 1.024 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.7606, allocations: 4 kB / 1.024 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001788/0.7608, allocations: 69.59 kB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.022e-06/0.7608, allocations: 0 / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-06/0.7608, allocations: 0 / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.7608, allocations: 0 / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001638/0.761, allocations: 51.91 kB / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003365/0.7613, allocations: 260.8 kB / 1.025 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001303/0.7614, allocations: 46.55 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.483e-05/0.7615, allocations: 28.91 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.7616, allocations: 0 / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.7616, allocations: 34.56 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 8.71e-07/0.7616, allocations: 0 / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0003443/0.7619, allocations: 109.6 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.457e-05/0.762, allocations: 51.41 kB / 1.025 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.929e-05/0.7621, allocations: 97.86 kB / 1.025 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.7621, allocations: 29.64 kB / 1.025 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.884e-05/0.7621, allocations: 80.14 kB / 1.025 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.045e-05/0.7622, allocations: 23.95 kB / 1.025 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.877e-06/0.7622, allocations: 0 / 1.025 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.908e-05/0.7623, allocations: 310.8 kB / 1.025 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.296e-05/0.7623, allocations: 23.98 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.31e-05/0.7624, allocations: 19.97 kB / 1.025 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.96e-05/0.7625, allocations: 28.05 kB / 1.025 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.7625, allocations: 0 / 1.025 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001954/0.7627, allocations: 85.55 kB / 1.025 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.7627, allocations: 10.03 kB / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.7628, allocations: 0 / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.938e-06/0.7628, allocations: 0 / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.343e-05/0.7629, allocations: 11.98 kB / 1.025 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.7629, allocations: 0 / 1.025 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.457e-05/0.7629, allocations: 12 kB / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.158e-06/0.763, allocations: 7.922 kB / 1.025 GB, free: 12.68 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 6.59e-05/0.763, allocations: 113.9 kB / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.352e-05/0.7631, allocations: 7.953 kB / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.767e-05/0.7631, allocations: 3.125 kB / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.7631, allocations: 0 / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.7631, allocations: 0 / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.7631, allocations: 0 / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001526/0.7633, allocations: 165.7 kB / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.7633, allocations: 0 / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.987e-05/0.7633, allocations: 15.98 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.7633, allocations: 3.953 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.7634, allocations: 0 / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.7634, allocations: 0 / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.7634, allocations: 3.938 kB / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002368/0.7636, allocations: 179.4 kB / 1.026 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.6e-05/0.7637, allocations: 77.11 kB / 1.026 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.7637, allocations: 3.953 kB / 1.026 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.999e-05/0.7638, allocations: 11.98 kB / 1.026 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.914e-05/0.7638, allocations: 7.984 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.7638, allocations: 0 / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.399e-05/0.7639, allocations: 91.44 kB / 1.026 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7639, allocations: 0 / 1.026 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002113/0.7641, allocations: 4 kB / 1.026 GB, free: 11.91 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 8.74e-05/0.7642, allocations: 99.38 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002111/0.7644, allocations: 55.89 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.7644, allocations: 0 / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.377e-05/0.7645, allocations: 27.97 kB / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.7648, allocations: 6.531 kB / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000278/0.7651, allocations: 108.8 kB / 1.026 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/0.7653, allocations: 0.677 MB / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.359e-05/0.7653, allocations: 4 kB / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.627e-05/0.7654, allocations: 7.438 kB / 1.027 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.7654, allocations: 0 / 1.027 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of Templates: time 0.002378/0.7678, allocations: 0.4973 MB / 1.028 GB, free: 10.37 MB / 0.7794 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/jenkins/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