Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.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.001462/0.001462, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 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.001672/0.001672, allocations: 215.6 kB / 22.99 MB, free: 4.945 MB / 14.72 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.536/1.536, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.261/3.261, allocations: 0.4892 GB / 0.7951 GB, free: 35.64 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002119/0.002119, allocations: 69.23 kB / 1.154 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3306, allocations: 176.1 MB / 1.326 GB, free: 1.797 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002574/0.3332, allocations: 0.8246 MB / 1.327 GB, free: 0.9766 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001435/0.3346, allocations: 0.9171 MB / 1.328 GB, free: 48 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.692e-05/0.3347, allocations: 4 kB / 1.328 GB, free: 44 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.894e-05/0.3347, allocations: 15.86 kB / 1.328 GB, free: 28 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001024/0.3348, allocations: 19.8 kB / 1.328 GB, free: 8 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002862/0.3351, allocations: 39.97 kB / 1.328 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001642/0.3353, allocations: 115.6 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.3354, allocations: 17.3 kB / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000189/0.3356, allocations: 63.77 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001484/0.3357, allocations: 43.77 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.689e-05/0.3358, allocations: 16 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 5.215e-05/0.3358, allocations: 16 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.735e-05/0.3358, allocations: 15.92 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 5.142e-05/0.3359, allocations: 47.77 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002118/0.3361, allocations: 131.4 kB / 1.329 GB, free: 15.51 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3361, allocations: 3.938 kB / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3361, allocations: 3.938 kB / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.76e-06/0.3361, allocations: 0 / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000757/0.3369, allocations: 373.7 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.3369, allocations: 8.031 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002584/0.3372, allocations: 32.86 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004922/0.3376, allocations: 186.5 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.3377, allocations: 8.375 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.174e-05/0.3377, allocations: 8.375 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002971/0.338, allocations: 121.8 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.338, allocations: 3.938 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.338, allocations: 4 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.338, allocations: 0 / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002798/0.3383, allocations: 71.92 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006326/0.3389, allocations: 440.7 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002902/0.3392, allocations: 115.8 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.3394, allocations: 50.61 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.3394, allocations: 4 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.3394, allocations: 34.5 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.353e-06/0.3394, allocations: 7.938 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.000608/0.3401, allocations: 161.4 kB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001378/0.3402, allocations: 106.8 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.3403, allocations: 148.7 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.3404, allocations: 29.95 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.914e-05/0.3404, allocations: 116.2 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.919e-05/0.3405, allocations: 23.8 kB / 1.331 GB, free: 13.28 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.628e-05/0.3405, allocations: 29.7 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001954/0.3407, allocations: 330.7 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.3409, allocations: 35.97 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.3411, allocations: 162.2 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002961/0.3414, allocations: 94.73 kB / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.3414, allocations: 3.938 kB / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003797/0.3418, allocations: 141.6 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.3418, allocations: 4 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.3418, allocations: 4 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.3418, allocations: 0 / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.342, allocations: 19.98 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.342, allocations: 7.984 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/0.3421, allocations: 19.94 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.3421, allocations: 4 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (hysteresis.y,$PRE.hysteresis.y,hysteresis1.y,$PRE.hysteresis1.y,hysteresis2.y,$PRE.hysteresis2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001121/0.3422, allocations: 119.4 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.581e-05/0.3423, allocations: 11.95 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002733/0.3426, allocations: 97.86 kB / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.3426, allocations: 4 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3426, allocations: 0 / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3426, allocations: 3.984 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002877/0.3429, allocations: 141.2 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3429, allocations: 0 / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.343, allocations: 19.92 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.343, allocations: 4 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.343, allocations: 0 / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/0.343, allocations: 7.922 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.343, allocations: 8 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004669/0.3435, allocations: 366 kB / 1.332 GB, free: 11.54 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.373e-05/0.3435, allocations: 15.89 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.605e-05/0.3435, allocations: 4 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/0.3438, allocations: 15.97 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.765e-05/0.3438, allocations: 23.95 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.3438, allocations: 12 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.907e-05/0.3439, allocations: 109.7 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3439, allocations: 0 / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003263/0.3443, allocations: 19.95 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (hysteresis.y,hysteresis1.y,hysteresis2.y) * Number of discrete states: 3 (hysteresis2.y,hysteresis1.y,hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.000135/0.3444, allocations: 103.2 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003863/0.3448, allocations: 96.09 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3448, allocations: 4 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001785/0.345, allocations: 51.89 kB / 1.333 GB, free: 11.09 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004721/0.3454, allocations: 14.12 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004973/0.3459, allocations: 221.5 kB / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001016/0.346, allocations: 88.31 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.642e-05/0.3461, allocations: 27.42 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.3461, allocations: 0 / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of Templates: time 0.003406/0.3495, allocations: 1.553 MB / 1.334 GB, free: 9.133 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.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: 11.080039584077895]