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.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.001826/0.001826, allocations: 92.7 kB / 19.44 MB, free: 324 kB / 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.00228/0.00228, allocations: 161.3 kB / 22.75 MB, free: 1.652 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 1.577/1.577, allocations: 177.1 MB / 203.1 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.323/3.323, allocations: 429.6 MB / 0.673 GB, free: 3.875 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 0.8776 GB, free: 6.508 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.674e-05/2.888e-05, allocations: 4.25 kB / 0.8776 GB, free: 6.504 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001836/0.001865, allocations: 0.6281 MB / 0.8782 GB, free: 5.898 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001304/0.003169, allocations: 0.8493 MB / 0.879 GB, free: 5.039 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.271e-05/0.003202, allocations: 1.531 kB / 0.879 GB, free: 5.039 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.788e-05/0.00323, allocations: 0.625 kB / 0.879 GB, free: 5.039 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.467e-05/0.003294, allocations: 0 / 0.879 GB, free: 5.039 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001685/0.003463, allocations: 21.5 kB / 0.879 GB, free: 5.02 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 7.253e-05/0.003535, allocations: 19.94 kB / 0.879 GB, free: 5 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.82e-05/0.003624, allocations: 8.703 kB / 0.8791 GB, free: 4.992 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 8.534e-05/0.003709, allocations: 16.78 kB / 0.8791 GB, free: 4.977 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.867e-05/0.003758, allocations: 11.97 kB / 0.8791 GB, free: 4.965 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.026e-05/0.003778, allocations: 4 kB / 0.8791 GB, free: 4.961 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.735e-06/0.003786, allocations: 0.75 kB / 0.8791 GB, free: 4.961 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.144e-05/0.003807, allocations: 7.984 kB / 0.8791 GB, free: 4.953 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.874e-05/0.003836, allocations: 8.75 kB / 0.8791 GB, free: 4.945 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 8.933e-05/0.003925, allocations: 23.84 kB / 0.8791 GB, free: 4.922 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.003932, allocations: 8.547 kB / 0.8791 GB, free: 4.914 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.61e-07/0.003933, allocations: 4.656 kB / 0.8791 GB, free: 4.91 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.676e-06/0.003936, allocations: 0 / 0.8791 GB, free: 4.91 MB / 0.8386 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.0005145/0.004451, allocations: 255.1 kB / 0.8794 GB, free: 4.629 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.004491, allocations: 11.97 kB / 0.8794 GB, free: 4.621 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.841e-05/0.004539, allocations: 8.938 kB / 0.8794 GB, free: 4.613 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.004665, allocations: 117.7 kB / 0.8795 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.004687, allocations: 384 / 0.8795 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.468e-06/0.004696, allocations: 384 / 0.8795 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001991/0.004895, allocations: 50.23 kB / 0.8796 GB, free: 4.418 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.004904, allocations: 192 / 0.8796 GB, free: 4.418 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.004914, allocations: 384 / 0.8796 GB, free: 4.418 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.004921, allocations: 4.375 kB / 0.8796 GB, free: 4.414 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.005123, allocations: 37.33 kB / 0.8796 GB, free: 4.379 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000392/0.005515, allocations: 200.6 kB / 0.8798 GB, free: 4.152 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001601/0.005675, allocations: 39.52 kB / 0.8798 GB, free: 4.105 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.005779, allocations: 26 kB / 0.8799 GB, free: 4.078 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.005799, allocations: 0 / 0.8799 GB, free: 4.078 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/0.005833, allocations: 30.56 kB / 0.8799 GB, free: 4.039 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 7.41e-07/0.005834, allocations: 1.125 kB / 0.8799 GB, free: 4.039 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0004367/0.006271, allocations: 94.61 kB / 0.88 GB, free: 3.941 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.006325, allocations: 59.39 kB / 0.88 GB, free: 3.871 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.006426, allocations: 94.67 kB / 0.8801 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.006445, allocations: 25.7 kB / 0.8801 GB, free: 3.738 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.371e-05/0.006509, allocations: 89.8 kB / 0.8802 GB, free: 3.648 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.006529, allocations: 3.953 kB / 0.8802 GB, free: 3.645 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.415e-05/0.006573, allocations: 17.7 kB / 0.8803 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001724/0.006745, allocations: 314.8 kB / 0.8806 GB, free: 3.305 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.511e-05/0.00684, allocations: 12.48 kB / 0.8806 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.434e-05/0.006935, allocations: 25.66 kB / 0.8806 GB, free: 3.27 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.007112, allocations: 41.95 kB / 0.8806 GB, free: 3.227 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.007113, allocations: 0 / 0.8806 GB, free: 3.227 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002551/0.007368, allocations: 74.69 kB / 0.8807 GB, free: 3.148 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.007384, allocations: 5.594 kB / 0.8807 GB, free: 3.145 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.007391, allocations: 3.938 kB / 0.8807 GB, free: 3.141 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/0.007412, allocations: 8 kB / 0.8807 GB, free: 3.133 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.007513, allocations: 7.984 kB / 0.8807 GB, free: 3.125 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.007518, allocations: 2.875 kB / 0.8807 GB, free: 3.125 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.342e-05/0.007581, allocations: 11.92 kB / 0.8807 GB, free: 3.113 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.007587, allocations: 0 / 0.8807 GB, free: 3.113 MB / 0.8386 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 9.422e-05/0.007681, allocations: 109.8 kB / 0.8808 GB, free: 2.996 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.769e-05/0.007709, allocations: 3.953 kB / 0.8808 GB, free: 2.992 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.758e-05/0.007736, allocations: 15.25 kB / 0.8809 GB, free: 2.977 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.007738, allocations: 0 / 0.8809 GB, free: 2.977 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.007742, allocations: 1.844 kB / 0.8809 GB, free: 2.977 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.007746, allocations: 3.984 kB / 0.8809 GB, free: 2.973 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000153/0.0079, allocations: 105.3 kB / 0.881 GB, free: 2.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.007901, allocations: 0 / 0.881 GB, free: 2.84 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.912e-05/0.00798, allocations: 12.61 kB / 0.881 GB, free: 2.828 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.007982, allocations: 0.8125 kB / 0.881 GB, free: 2.828 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.007989, allocations: 0 / 0.881 GB, free: 2.828 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.648e-06/0.007994, allocations: 3.938 kB / 0.881 GB, free: 2.824 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.007999, allocations: 4.656 kB / 0.881 GB, free: 2.82 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000412/0.008411, allocations: 171.7 kB / 0.8812 GB, free: 2.637 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.612e-06/0.008418, allocations: 0 / 0.8812 GB, free: 2.637 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.674e-05/0.008434, allocations: 4 kB / 0.8812 GB, free: 2.633 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.85e-05/0.008523, allocations: 7.938 kB / 0.8812 GB, free: 2.625 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.187e-05/0.008585, allocations: 7.984 kB / 0.8812 GB, free: 2.617 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/0.008589, allocations: 0 / 0.8812 GB, free: 2.617 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6e-05/0.008649, allocations: 87.27 kB / 0.8813 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.008649, allocations: 0 / 0.8813 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002279/0.008877, allocations: 4 kB / 0.8813 GB, free: 2.527 MB / 0.8386 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.0001238/0.009001, allocations: 102.4 kB / 0.8814 GB, free: 2.422 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000247/0.009248, allocations: 39.89 kB / 0.8814 GB, free: 2.383 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.562e-06/0.009249, allocations: 0 / 0.8814 GB, free: 2.383 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.009353, allocations: 23.98 kB / 0.8814 GB, free: 2.359 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.009655, allocations: 8.625 kB / 0.8814 GB, free: 2.352 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003917/0.01005, allocations: 117.6 kB / 0.8815 GB, free: 2.211 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.667e-05/0.01012, allocations: 59.22 kB / 0.8816 GB, free: 2.133 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.53e-05/0.01016, allocations: 4 kB / 0.8816 GB, free: 2.129 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.0102, allocations: 12.48 kB / 0.8816 GB, free: 2.113 MB / 0.8386 GB Notification: Performance of SimCode: time 8.12e-07/0.01021, allocations: 0 / 0.8816 GB, free: 2.113 MB / 0.8386 GB Notification: Performance of Templates: time 0.00373/0.01394, allocations: 0.6711 MB / 0.8823 GB, free: 1.461 MB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.439851630944759]