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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_latest_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.007603/0.007603, allocations: 97.58 kB / 15.73 MB, free: 5.996 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.001846/0.001846, allocations: 184.7 kB / 16.67 MB, free: 5.926 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.694/2.694, allocations: 469.4 MB / 0.7422 GB, free: 7.613 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 75.86 kB / 1.064 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2592, allocations: 159.1 MB / 1.22 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001679/0.2609, allocations: 0.6346 MB / 1.22 GB, free: 14.1 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0008562/0.2618, allocations: 0.8096 MB / 1.221 GB, free: 13.28 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.097e-05/0.2618, allocations: 4 kB / 1.221 GB, free: 13.28 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.562e-05/0.2619, allocations: 3.938 kB / 1.221 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.184e-05/0.2619, allocations: 0 / 1.221 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001259/0.2621, allocations: 27.91 kB / 1.221 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 6.451e-05/0.2621, allocations: 19.98 kB / 1.221 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.192e-05/0.2622, allocations: 4 kB / 1.221 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.068e-05/0.2623, allocations: 19.86 kB / 1.221 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.443e-05/0.2623, allocations: 11.98 kB / 1.221 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.685e-05/0.2624, allocations: 4 kB / 1.221 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.355e-06/0.2624, allocations: 0 / 1.221 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.183e-05/0.2624, allocations: 15.92 kB / 1.221 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.292e-05/0.2624, allocations: 4 kB / 1.221 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 8.059e-05/0.2625, allocations: 27.89 kB / 1.221 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2625, allocations: 4 kB / 1.221 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.303e-06/0.2625, allocations: 0 / 1.221 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.198e-06/0.2625, allocations: 0 / 1.221 GB, free: 13.14 MB / 0.9825 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.0004153/0.263, allocations: 335.5 kB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.263, allocations: 8.031 kB / 1.222 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.063e-05/0.263, allocations: 34.75 kB / 1.222 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.316e-05/0.2631, allocations: 4.891 kB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.872e-05/0.2632, allocations: 168.3 kB / 1.222 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.2632, allocations: 8.375 kB / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.071e-05/0.2632, allocations: 384 / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001666/0.2634, allocations: 58.16 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.2634, allocations: 3.938 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.2634, allocations: 0 / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.2634, allocations: 3.938 kB / 1.222 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001772/0.2636, allocations: 39.95 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003258/0.2639, allocations: 253 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001322/0.2641, allocations: 42.5 kB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.386e-05/0.2642, allocations: 28.83 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.2642, allocations: 4 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.2642, allocations: 34.56 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.2642, allocations: 0 / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0003566/0.2646, allocations: 81.64 kB / 1.222 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.417e-05/0.2647, allocations: 51.41 kB / 1.222 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.747e-05/0.2648, allocations: 101.8 kB / 1.222 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.309e-05/0.2648, allocations: 29.7 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.486e-05/0.2648, allocations: 92.16 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.481e-05/0.2649, allocations: 4 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-05/0.2649, allocations: 13.72 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.512e-05/0.265, allocations: 318.8 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.003e-05/0.2651, allocations: 15.98 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.148e-05/0.2652, allocations: 19.98 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001678/0.2654, allocations: 44.88 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2654, allocations: 3.938 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002198/0.2656, allocations: 69.61 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.2656, allocations: 5.875 kB / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.2656, allocations: 0 / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.2656, allocations: 4 kB / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.713e-05/0.2657, allocations: 12.02 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.2658, allocations: 7.938 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.899e-05/0.2658, allocations: 7.984 kB / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-06/0.2658, allocations: 0 / 1.223 GB, free: 11.03 MB / 0.9825 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.708e-05/0.2659, allocations: 118.3 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.567e-05/0.2659, allocations: 0 / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.523e-05/0.266, allocations: 3.125 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.266, allocations: 0 / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.266, allocations: 4 kB / 1.223 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.266, allocations: 4 kB / 1.223 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001463/0.2661, allocations: 165.6 kB / 1.223 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.2661, allocations: 0 / 1.223 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.39e-05/0.2662, allocations: 15.92 kB / 1.223 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.2662, allocations: 0 / 1.223 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.2662, allocations: 0 / 1.223 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.2663, allocations: 0 / 1.223 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.2663, allocations: 0 / 1.223 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000257/0.2665, allocations: 167.5 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.162e-05/0.2666, allocations: 89 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.271e-05/0.2666, allocations: 0 / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.47e-05/0.2667, allocations: 7.984 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/0.2667, allocations: 3.984 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.2667, allocations: 4 kB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.723e-05/0.2668, allocations: 83.45 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2668, allocations: 4.031 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002226/0.267, allocations: 4 kB / 1.224 GB, free: 10.28 MB / 0.9825 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.0005045/0.2675, allocations: 0.6968 MB / 1.224 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002111/0.2678, allocations: 47.94 kB / 1.224 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2678, allocations: 3.938 kB / 1.224 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.503e-05/0.2679, allocations: 19.97 kB / 1.224 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.2681, allocations: 8 kB / 1.224 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003875/0.2685, allocations: 135 kB / 1.225 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002062/0.2688, allocations: 0.6769 MB / 1.225 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.125e-05/0.2688, allocations: 4 kB / 1.225 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.071e-05/0.2688, allocations: 15.42 kB / 1.225 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.2689, allocations: 4 kB / 1.225 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01641/0.2853, allocations: 1.454 MB / 1.227 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.166/7.451, allocations: 6.375 kB / 1.227 GB, free: 7.262 MB / 0.9825 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches