Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.0008635/0.0008636, allocations: 98.88 kB / 16.02 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 181.3 kB / 16.92 MB, free: 6.918 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.452/1.452, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.477/2.477, allocations: 390.9 MB / 0.667 GB, free: 2.332 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000392/0.0003922, allocations: 8 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.781/0.7814, allocations: 142.4 MB / 0.9557 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.0007857/0.7822, allocations: 353.7 kB / 0.956 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007921/0.783, allocations: 0.8182 MB / 0.9568 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.188e-05/0.7831, allocations: 0 / 0.9568 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.812e-05/0.7831, allocations: 3.938 kB / 0.9569 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.401e-05/0.7832, allocations: 5.141 kB / 0.9569 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001282/0.7833, allocations: 11.67 kB / 0.9569 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.492e-05/0.7834, allocations: 26.67 kB / 0.9569 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.733e-05/0.7835, allocations: 2.344 kB / 0.9569 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.886e-05/0.7835, allocations: 11.77 kB / 0.9569 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.158e-05/0.7836, allocations: 12.12 kB / 0.9569 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.925e-05/0.7836, allocations: 1.25 kB / 0.9569 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.156e-05/0.7836, allocations: 2.188 kB / 0.9569 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.619e-05/0.7837, allocations: 11.97 kB / 0.9569 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.138e-05/0.7837, allocations: 32.02 kB / 0.957 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.134e-05/0.7838, allocations: 28.05 kB / 0.957 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.7838, allocations: 0 / 0.957 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.853e-06/0.7838, allocations: 0 / 0.957 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.7838, allocations: 0 / 0.957 GB, free: 6.648 MB / 0.7169 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.0003758/0.7842, allocations: 337.9 kB / 0.9573 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.7842, allocations: 9.094 kB / 0.9573 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.965e-05/0.7843, allocations: 3.125 kB / 0.9573 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.579e-05/0.7843, allocations: 165.4 kB / 0.9575 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.7844, allocations: 5.656 kB / 0.9575 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.296e-05/0.7844, allocations: 1.594 kB / 0.9575 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001771/0.7846, allocations: 58.64 kB / 0.9575 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.7846, allocations: 192 / 0.9575 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.7846, allocations: 4.969 kB / 0.9575 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.7846, allocations: 0 / 0.9575 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.7848, allocations: 46.42 kB / 0.9576 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003041/0.7851, allocations: 257.5 kB / 0.9578 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00014/0.7853, allocations: 56.73 kB / 0.9579 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.989e-05/0.7854, allocations: 27.81 kB / 0.9579 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.7854, allocations: 1.031 kB / 0.9579 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.713e-05/0.7854, allocations: 35.62 kB / 0.958 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.7854, allocations: 0 / 0.958 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003959/0.7858, allocations: 104.7 kB / 0.9581 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.743e-05/0.7859, allocations: 56.61 kB / 0.9581 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.402e-05/0.7859, allocations: 94.39 kB / 0.9582 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.706e-06/0.786, allocations: 26.86 kB / 0.9582 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.658e-05/0.786, allocations: 85.2 kB / 0.9583 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.984e-05/0.786, allocations: 9.031 kB / 0.9583 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.123e-05/0.786, allocations: 13.84 kB / 0.9583 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.808e-05/0.7861, allocations: 319.9 kB / 0.9586 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.456e-05/0.7862, allocations: 18.27 kB / 0.9587 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.452e-05/0.7863, allocations: 23.17 kB / 0.9587 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001743/0.7865, allocations: 55.16 kB / 0.9587 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.7865, allocations: 0 / 0.9587 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002173/0.7867, allocations: 87.59 kB / 0.9588 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.7867, allocations: 6.688 kB / 0.9588 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.7867, allocations: 0 / 0.9588 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.7868, allocations: 0 / 0.9588 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.7869, allocations: 13.58 kB / 0.9588 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.7869, allocations: 0 / 0.9588 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.97e-05/0.787, allocations: 18.05 kB / 0.9588 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-06/0.787, allocations: 1.156 kB / 0.9588 GB, free: 4.812 MB / 0.7169 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.716e-05/0.787, allocations: 111 kB / 0.959 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.341e-05/0.7871, allocations: 6.625 kB / 0.959 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.92e-05/0.7871, allocations: 7.125 kB / 0.959 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.7871, allocations: 192 / 0.959 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.7871, allocations: 1.438 kB / 0.959 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.7871, allocations: 3.984 kB / 0.959 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001217/0.7873, allocations: 169.9 kB / 0.9591 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.7873, allocations: 5.594 kB / 0.9591 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.994e-05/0.7873, allocations: 11.8 kB / 0.9591 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.7873, allocations: 0 / 0.9591 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.7874, allocations: 1.219 kB / 0.9592 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.7874, allocations: 3.938 kB / 0.9592 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.7874, allocations: 1.156 kB / 0.9592 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002469/0.7876, allocations: 185.7 kB / 0.9593 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.94e-05/0.7877, allocations: 78.14 kB / 0.9594 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.7877, allocations: 4.953 kB / 0.9594 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.165e-05/0.7878, allocations: 5.719 kB / 0.9594 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.568e-05/0.7878, allocations: 10.36 kB / 0.9594 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.7878, allocations: 1.156 kB / 0.9594 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.524e-05/0.7879, allocations: 82.62 kB / 0.9595 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7879, allocations: 0 / 0.9595 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002121/0.7881, allocations: 3.594 kB / 0.9595 GB, free: 4.109 MB / 0.7169 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 9.276e-05/0.7882, allocations: 100.8 kB / 0.9596 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002284/0.7884, allocations: 49.28 kB / 0.9597 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.7884, allocations: 3.938 kB / 0.9597 GB, free: 4 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.305e-05/0.7885, allocations: 29.19 kB / 0.9597 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/0.7888, allocations: 10.03 kB / 0.9597 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002832/0.7891, allocations: 134.1 kB / 0.9598 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001053/0.7892, allocations: 0.6778 MB / 0.9605 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.097e-05/0.7893, allocations: 9.031 kB / 0.9605 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of SimCode: time 3.31e-07/0.7893, allocations: 0 / 0.9605 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of Templates: time 0.001793/0.7911, allocations: 0.5879 MB / 0.9611 GB, free: 2.832 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches