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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007752/0.0007755, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004742/0.004743, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.332/1.332, allocations: 223.3 MB / 240.3 MB, free: 5.328 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.331/2.331, allocations: 390.9 MB / 0.6664 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003666/0.0003671, allocations: 12 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7343/0.7347, allocations: 142.4 MB / 0.9552 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.0007908/0.7356, allocations: 350.2 kB / 0.9555 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008842/0.7365, allocations: 0.8185 MB / 0.9563 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.747e-05/0.7365, allocations: 1.25 kB / 0.9563 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.095e-05/0.7366, allocations: 7.938 kB / 0.9563 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.649e-05/0.7366, allocations: 0 / 0.9563 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001621/0.7368, allocations: 11.39 kB / 0.9563 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.931e-05/0.7369, allocations: 30.52 kB / 0.9564 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.737, allocations: 3.281 kB / 0.9564 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.664e-05/0.7371, allocations: 16.2 kB / 0.9564 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.487e-05/0.7372, allocations: 12.23 kB / 0.9564 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.7372, allocations: 1.281 kB / 0.9564 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.24e-05/0.7372, allocations: 1.188 kB / 0.9564 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.008e-05/0.7373, allocations: 11.98 kB / 0.9564 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.078e-05/0.7373, allocations: 32.08 kB / 0.9564 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.051e-05/0.7374, allocations: 24.36 kB / 0.9565 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.423e-06/0.7374, allocations: 1 kB / 0.9565 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.875e-06/0.7374, allocations: 0 / 0.9565 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.7374, allocations: 0 / 0.9565 GB, free: 6.723 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.0005039/0.7379, allocations: 337.7 kB / 0.9568 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/0.738, allocations: 14.34 kB / 0.9568 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.661e-05/0.7381, allocations: 38.69 kB / 0.9568 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.834e-05/0.7381, allocations: 2.219 kB / 0.9568 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001089/0.7382, allocations: 165.7 kB / 0.957 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.779e-05/0.7382, allocations: 1.406 kB / 0.957 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.406e-05/0.7383, allocations: 1.25 kB / 0.957 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.7385, allocations: 63.7 kB / 0.9571 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.7385, allocations: 3.938 kB / 0.9571 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.7385, allocations: 5.062 kB / 0.9571 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.7385, allocations: 0 / 0.9571 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002008/0.7387, allocations: 46.36 kB / 0.9571 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003922/0.7391, allocations: 257 kB / 0.9573 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001562/0.7393, allocations: 49.05 kB / 0.9574 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.7394, allocations: 28.59 kB / 0.9574 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.7394, allocations: 0 / 0.9574 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.7395, allocations: 36.03 kB / 0.9575 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.81e-07/0.7395, allocations: 0 / 0.9575 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.000417/0.7399, allocations: 109 kB / 0.9576 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.7399, allocations: 52.69 kB / 0.9576 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.304e-05/0.74, allocations: 98.17 kB / 0.9577 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.02e-05/0.74, allocations: 30.61 kB / 0.9577 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.671e-05/0.7401, allocations: 85.22 kB / 0.9578 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/0.7401, allocations: 9.125 kB / 0.9578 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.23e-05/0.7401, allocations: 13.72 kB / 0.9578 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.717e-05/0.7402, allocations: 315.8 kB / 0.9581 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.427e-05/0.7403, allocations: 23.27 kB / 0.9582 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.398e-05/0.7404, allocations: 21.97 kB / 0.9582 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001748/0.7406, allocations: 52.08 kB / 0.9582 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.7406, allocations: 3.938 kB / 0.9582 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002174/0.7408, allocations: 86.66 kB / 0.9583 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.7408, allocations: 5.438 kB / 0.9583 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.7408, allocations: 0 / 0.9583 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.7409, allocations: 5.438 kB / 0.9583 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.741, allocations: 11.7 kB / 0.9583 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.741, allocations: 1.438 kB / 0.9583 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.868e-05/0.7411, allocations: 9.984 kB / 0.9584 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.7411, allocations: 4.031 kB / 0.9584 GB, free: 4.832 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 8.114e-05/0.7412, allocations: 112.5 kB / 0.9585 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.207e-05/0.7412, allocations: 1.219 kB / 0.9585 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.145e-05/0.7412, allocations: 7.125 kB / 0.9585 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.7412, allocations: 5.047 kB / 0.9585 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.7412, allocations: 0 / 0.9585 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.7413, allocations: 0 / 0.9585 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001439/0.7414, allocations: 159.3 kB / 0.9586 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.7414, allocations: 0 / 0.9586 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.903e-05/0.7415, allocations: 16.58 kB / 0.9586 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.7415, allocations: 1.531 kB / 0.9586 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.7415, allocations: 0 / 0.9586 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.7415, allocations: 0 / 0.9586 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.7415, allocations: 0 / 0.9586 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002396/0.7418, allocations: 190.5 kB / 0.9588 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.72e-05/0.7418, allocations: 78.48 kB / 0.9589 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.7418, allocations: 4 kB / 0.9589 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.041e-05/0.7419, allocations: 5.938 kB / 0.9589 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.25e-05/0.742, allocations: 11.02 kB / 0.9589 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.742, allocations: 1.75 kB / 0.9589 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.33e-05/0.742, allocations: 94.31 kB / 0.959 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.742, allocations: 0 / 0.959 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002064/0.7422, allocations: 3.75 kB / 0.959 GB, free: 4.133 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 0.0004096/0.7426, allocations: 0.7145 MB / 0.9597 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002114/0.7428, allocations: 51.05 kB / 0.9598 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.7429, allocations: 0 / 0.9598 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.43e-05/0.743, allocations: 26.64 kB / 0.9598 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.7432, allocations: 9.359 kB / 0.9598 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003846/0.7436, allocations: 140.3 kB / 0.9599 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001045/0.7438, allocations: 0.6733 MB / 0.9606 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.106e-05/0.7438, allocations: 9.266 kB / 0.9606 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.238e-05/0.7438, allocations: 12.81 kB / 0.9606 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of SimCode: time 3.8e-07/0.7438, allocations: 0 / 0.9606 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01179/0.7556, allocations: 1.165 MB / 0.9617 GB, free: 2 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001633/0.7558, allocations: 211.5 kB / 0.9619 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.655/2.411, allocations: 0 / 0.9619 GB, free: 1.75 MB / 0.7169 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.fmu > 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