Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8852/0.8852, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.735/1.735, allocations: 377.8 MB / 0.6221 GB, free: 8.656 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.775e-06/2.775e-06, allocations: 0 / 0.9809 GB, free: 2.613 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.467e-05/2.744e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.609 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001318/0.001346, allocations: 0.6311 MB / 0.9816 GB, free: 1.98 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0008033/0.002149, allocations: 0.847 MB / 0.9824 GB, free: 1.121 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.271e-05/0.002182, allocations: 0 / 0.9824 GB, free: 1.121 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.539e-05/0.002207, allocations: 0 / 0.9824 GB, free: 1.121 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 5.717e-05/0.002264, allocations: 8 kB / 0.9824 GB, free: 1.113 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001468/0.002411, allocations: 15.92 kB / 0.9824 GB, free: 1.098 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 6.453e-05/0.002476, allocations: 27.92 kB / 0.9824 GB, free: 1.07 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 8.964e-05/0.002565, allocations: 4 kB / 0.9824 GB, free: 1.066 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 7.293e-05/0.002638, allocations: 15.97 kB / 0.9824 GB, free: 1.051 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.303e-05/0.002681, allocations: 15.92 kB / 0.9825 GB, free: 1.035 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.264e-05/0.002704, allocations: 4 kB / 0.9825 GB, free: 1.031 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 7.093e-06/0.002711, allocations: 0 / 0.9825 GB, free: 1.031 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.494e-05/0.002726, allocations: 4 kB / 0.9825 GB, free: 1.027 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 1.967e-05/0.002746, allocations: 4 kB / 0.9825 GB, free: 1.023 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 7.963e-05/0.002825, allocations: 31.94 kB / 0.9825 GB, free: 0.9922 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.002828, allocations: 0 / 0.9825 GB, free: 0.9922 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.233e-06/0.002829, allocations: 3.938 kB / 0.9825 GB, free: 0.9883 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.002834, allocations: 4 kB / 0.9825 GB, free: 0.9844 MB / 0.9323 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.000353/0.003187, allocations: 258.3 kB / 0.9828 GB, free: 0.6992 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.003228, allocations: 8.031 kB / 0.9828 GB, free: 0.6914 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.979e-05/0.003258, allocations: 34.75 kB / 0.9828 GB, free: 0.6484 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.221e-05/0.00328, allocations: 8.891 kB / 0.9828 GB, free: 0.6406 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.158e-05/0.003352, allocations: 105.7 kB / 0.9829 GB, free: 0.5117 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.003372, allocations: 12.36 kB / 0.9829 GB, free: 0.5 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.086e-06/0.00338, allocations: 4.375 kB / 0.9829 GB, free: 0.4961 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001269/0.003507, allocations: 50.23 kB / 0.983 GB, free: 452 kB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.003513, allocations: 192 / 0.983 GB, free: 452 kB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.003521, allocations: 384 / 0.983 GB, free: 452 kB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-06/0.003526, allocations: 4.125 kB / 0.983 GB, free: 448 kB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.079e-05/0.003617, allocations: 35.95 kB / 0.983 GB, free: 412 kB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002861/0.003903, allocations: 220 kB / 0.9832 GB, free: 148 kB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 8.818e-05/0.003991, allocations: 38.56 kB / 0.9833 GB, free: 100 kB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.846e-05/0.00404, allocations: 28.89 kB / 0.9833 GB, free: 68 kB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/0.004054, allocations: 3.938 kB / 0.9833 GB, free: 64 kB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.642e-05/0.00408, allocations: 34.5 kB / 0.9833 GB, free: 20 kB / 0.9323 GB Notification: Performance of pre-optimization done (n=2): time 1.292e-06/0.004082, allocations: 0 / 0.9833 GB, free: 20 kB / 0.9323 GB Notification: Performance of matching and sorting (n=2): time 0.0002436/0.004325, allocations: 89.58 kB / 0.9834 GB, free: 15.93 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.885e-05/0.004354, allocations: 51.53 kB / 0.9835 GB, free: 15.86 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.323e-05/0.004417, allocations: 109.8 kB / 0.9836 GB, free: 15.75 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.004428, allocations: 25.7 kB / 0.9836 GB, free: 15.71 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 2.953e-05/0.004458, allocations: 80.14 kB / 0.9837 GB, free: 15.63 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.497e-05/0.004473, allocations: 8 kB / 0.9837 GB, free: 15.62 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.455e-05/0.004497, allocations: 9.719 kB / 0.9837 GB, free: 15.61 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.381e-05/0.004571, allocations: 318.8 kB / 0.984 GB, free: 15.29 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.75e-05/0.004619, allocations: 15.98 kB / 0.984 GB, free: 15.27 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.047e-05/0.004659, allocations: 19.98 kB / 0.984 GB, free: 15.25 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.421e-05/0.004743, allocations: 44.88 kB / 0.9841 GB, free: 15.21 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.004745, allocations: 0 / 0.9841 GB, free: 15.21 MB / 0.948 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001286/0.004874, allocations: 77.48 kB / 0.9841 GB, free: 15.12 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.004887, allocations: 4 kB / 0.9841 GB, free: 15.12 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.004892, allocations: 0 / 0.9841 GB, free: 15.12 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.004904, allocations: 0 / 0.9841 GB, free: 15.12 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.14e-05/0.004975, allocations: 19.95 kB / 0.9842 GB, free: 15.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.00498, allocations: 0 / 0.9842 GB, free: 15.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.64e-05/0.005006, allocations: 4 kB / 0.9842 GB, free: 15.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.541e-06/0.005012, allocations: 3.984 kB / 0.9842 GB, free: 15.09 MB / 0.948 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 5.9e-05/0.005071, allocations: 113.8 kB / 0.9843 GB, free: 14.97 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.382e-05/0.005085, allocations: 3.938 kB / 0.9843 GB, free: 14.97 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.382e-05/0.005099, allocations: 3.5 kB / 0.9843 GB, free: 14.97 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.005101, allocations: 3.984 kB / 0.9843 GB, free: 14.96 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.005106, allocations: 4 kB / 0.9843 GB, free: 14.96 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.005108, allocations: 0 / 0.9843 GB, free: 14.96 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.005213, allocations: 132.8 kB / 0.9844 GB, free: 14.79 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.005214, allocations: 0 / 0.9844 GB, free: 14.79 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.254e-05/0.005247, allocations: 11.98 kB / 0.9844 GB, free: 14.78 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.005249, allocations: 3.938 kB / 0.9844 GB, free: 14.77 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.62e-06/0.005255, allocations: 0 / 0.9844 GB, free: 14.77 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.005256, allocations: 0 / 0.9844 GB, free: 14.77 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.005258, allocations: 4 kB / 0.9844 GB, free: 14.77 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001423/0.005401, allocations: 167.5 kB / 0.9846 GB, free: 14.59 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.546e-06/0.005409, allocations: 15.86 kB / 0.9846 GB, free: 14.57 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.083e-05/0.00542, allocations: 3.984 kB / 0.9846 GB, free: 14.57 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.889e-05/0.005459, allocations: 4 kB / 0.9846 GB, free: 14.57 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.284e-05/0.005502, allocations: 11.98 kB / 0.9846 GB, free: 14.55 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-06/0.005504, allocations: 0 / 0.9846 GB, free: 14.55 MB / 0.948 GB Notification: Performance of sorting global known variables: time 2.641e-05/0.005531, allocations: 83.22 kB / 0.9847 GB, free: 14.47 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.005531, allocations: 0 / 0.9847 GB, free: 14.47 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001463/0.005677, allocations: 8 kB / 0.9847 GB, free: 14.46 MB / 0.948 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.0003337/0.006011, allocations: 0.7045 MB / 0.9854 GB, free: 13.73 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001297/0.00614, allocations: 35.95 kB / 0.9854 GB, free: 13.7 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.006142, allocations: 0 / 0.9854 GB, free: 13.7 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.606e-05/0.006188, allocations: 19.98 kB / 0.9855 GB, free: 13.68 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002334/0.006421, allocations: 4 kB / 0.9855 GB, free: 13.68 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003366/0.006758, allocations: 134.6 kB / 0.9856 GB, free: 13.5 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.447e-05/0.006803, allocations: 63.3 kB / 0.9856 GB, free: 13.42 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.905e-05/0.006832, allocations: 3.984 kB / 0.9857 GB, free: 13.42 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.358e-05/0.006875, allocations: 20.44 kB / 0.9857 GB, free: 13.4 MB / 0.948 GB Notification: Performance of SimCode: time 7.01e-07/0.006876, allocations: 0 / 0.9857 GB, free: 13.4 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01708/0.02395, allocations: 2.128 MB / 0.9877 GB, free: 11.41 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.919/6.943, allocations: 4.016 kB / 0.9878 GB, free: 11.41 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.972268503159285]