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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_10_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.001063/0.001063, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001156/0.001156, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.232/1.232, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.352/2.352, allocations: 437 MB / 0.7101 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 59.89 kB / 0.8689 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5507/0.552, allocations: 151.6 MB / 1.017 GB, free: 2.676 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001549/0.5536, allocations: 0.6819 MB / 1.018 GB, free: 2 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006689/0.5542, allocations: 0.8234 MB / 1.018 GB, free: 1.164 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.211e-05/0.5543, allocations: 0 / 1.018 GB, free: 1.164 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.137e-05/0.5543, allocations: 0 / 1.018 GB, free: 1.164 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.154e-05/0.5544, allocations: 7.938 kB / 1.018 GB, free: 1.156 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 9.599e-05/0.5545, allocations: 12 kB / 1.018 GB, free: 1.145 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.023e-05/0.5545, allocations: 23.92 kB / 1.018 GB, free: 1.121 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.092e-05/0.5546, allocations: 11.98 kB / 1.018 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.193e-05/0.5546, allocations: 15.92 kB / 1.018 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.252e-05/0.5547, allocations: 7.984 kB / 1.018 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.5547, allocations: 4 kB / 1.018 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.164e-06/0.5547, allocations: 0 / 1.018 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.314e-05/0.5547, allocations: 11.94 kB / 1.018 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.879e-05/0.5548, allocations: 15.92 kB / 1.019 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 5.405e-05/0.5548, allocations: 23.89 kB / 1.019 GB, free: 1.031 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.5548, allocations: 4 kB / 1.019 GB, free: 1.027 MB / 0.7637 GB Notification: Performance of FrontEnd: time 9.32e-07/0.5548, allocations: 0 / 1.019 GB, free: 1.027 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.606e-06/0.5548, allocations: 0 / 1.019 GB, free: 1.027 MB / 0.7637 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.0003294/0.5552, allocations: 337.7 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.001e-05/0.5552, allocations: 8.031 kB / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.996e-05/0.5552, allocations: 34.75 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.558e-05/0.5553, allocations: 0.9375 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.258e-05/0.5553, allocations: 172.3 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.5554, allocations: 8.375 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.094e-06/0.5554, allocations: 4.312 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001455/0.5555, allocations: 54.22 kB / 1.019 GB, free: 328 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.59e-06/0.5555, allocations: 3.938 kB / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.422e-06/0.5556, allocations: 0 / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.277e-06/0.5556, allocations: 0 / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001538/0.5557, allocations: 39.95 kB / 1.019 GB, free: 284 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002621/0.556, allocations: 245 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001234/0.5561, allocations: 54.42 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.81e-05/0.5562, allocations: 20.84 kB / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.18e-05/0.5562, allocations: 4 kB / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.851e-05/0.5563, allocations: 38.56 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.5563, allocations: 0 / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0002999/0.5566, allocations: 81.64 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.643e-05/0.5566, allocations: 51.41 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.272e-05/0.5567, allocations: 101.8 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.1e-05/0.5567, allocations: 33.83 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.032e-05/0.5567, allocations: 84.14 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.558e-05/0.5567, allocations: 7.844 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.964e-05/0.5568, allocations: 17.7 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.773e-05/0.5568, allocations: 314.8 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.583e-05/0.5569, allocations: 11.98 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.158e-05/0.557, allocations: 19.98 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001386/0.5571, allocations: 44.88 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.5572, allocations: 3.938 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001811/0.5573, allocations: 69.66 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.5574, allocations: 4 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.5574, allocations: 3.938 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.917e-06/0.5574, allocations: 8.031 kB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.375e-05/0.5575, allocations: 7.984 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.367e-06/0.5575, allocations: 0 / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.156e-05/0.5575, allocations: 7.984 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.539e-06/0.5575, allocations: 3.938 kB / 1.02 GB, free: 14.93 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.11e-05/0.5576, allocations: 114.3 kB / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.276e-05/0.5576, allocations: 3.906 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.441e-05/0.5577, allocations: 7.125 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.5577, allocations: 4 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.5577, allocations: 4 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.5577, allocations: 0 / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001261/0.5578, allocations: 161.6 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.5578, allocations: 0 / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.745e-05/0.5579, allocations: 11.98 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.5579, allocations: 0 / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-06/0.5579, allocations: 4 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.5579, allocations: 3.984 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.5579, allocations: 3.938 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002221/0.5581, allocations: 171.4 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.636e-05/0.5582, allocations: 81.11 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.5582, allocations: 3.984 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.844e-05/0.5583, allocations: 4 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.54e-05/0.5583, allocations: 7.984 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-06/0.5583, allocations: 8.031 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.737e-05/0.5584, allocations: 75.47 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.5584, allocations: 0 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001991/0.5586, allocations: 4 kB / 1.021 GB, free: 14.18 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 (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.0004175/0.559, allocations: 0.7048 MB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000182/0.5592, allocations: 43.89 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.5592, allocations: 0 / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.455e-05/0.5593, allocations: 19.98 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002243/0.5595, allocations: 4 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003405/0.5599, allocations: 143.3 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001698/0.56, allocations: 0.6768 MB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.797e-05/0.5601, allocations: 3.984 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.562e-05/0.5601, allocations: 23.36 kB / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.5601, allocations: 0 / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.076/1.636, allocations: 1.271 MB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002003/1.636, allocations: 217 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.832/3.468, allocations: 4 kB / 1.024 GB, free: 11.08 MB / 0.7794 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.fmu > 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/jenkins1/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