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.001439/0.001439, allocations: 110 kB / 16.46 MB, free: 6.453 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.001632/0.001632, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.505/1.505, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.308/3.308, allocations: 0.4899 GB / 0.7915 GB, free: 33.08 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.002341/0.002341, allocations: 73.22 kB / 1.149 GB, free: 26.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4553/0.4576, allocations: 176.1 MB / 1.321 GB, free: 2.789 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.003021/0.4607, allocations: 0.8572 MB / 1.322 GB, free: 1.93 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00172/0.4624, allocations: 0.9288 MB / 1.323 GB, free: 0.9883 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.4625, allocations: 0 / 1.323 GB, free: 0.9883 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 5.337e-05/0.4626, allocations: 7.875 kB / 1.323 GB, free: 0.9805 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001526/0.4627, allocations: 19.8 kB / 1.323 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003443/0.463, allocations: 47.81 kB / 1.323 GB, free: 0.9141 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002213/0.4633, allocations: 115.7 kB / 1.323 GB, free: 0.8008 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.4634, allocations: 13.12 kB / 1.323 GB, free: 0.7852 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000289/0.4637, allocations: 63.77 kB / 1.323 GB, free: 0.7227 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001359/0.4638, allocations: 55.75 kB / 1.323 GB, free: 0.668 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.764e-05/0.4639, allocations: 8 kB / 1.323 GB, free: 0.6602 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.647e-05/0.4639, allocations: 16 kB / 1.323 GB, free: 0.6445 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.743e-05/0.464, allocations: 31.83 kB / 1.323 GB, free: 0.6133 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.719e-05/0.4641, allocations: 43.73 kB / 1.323 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002809/0.4643, allocations: 123.4 kB / 1.324 GB, free: 460 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.4643, allocations: 4 kB / 1.324 GB, free: 456 kB / 1.014 GB Notification: Performance of FrontEnd: time 2.144e-06/0.4643, allocations: 0 / 1.324 GB, free: 456 kB / 1.014 GB Notification: Performance of Transformations before backend: time 8.056e-06/0.4644, allocations: 0 / 1.324 GB, free: 456 kB / 1.014 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.0009532/0.4653, allocations: 450.8 kB / 1.324 GB, free: 15.95 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.4654, allocations: 11.98 kB / 1.324 GB, free: 15.94 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003042/0.4657, allocations: 36.86 kB / 1.324 GB, free: 15.91 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005712/0.4662, allocations: 256.2 kB / 1.324 GB, free: 15.62 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.073e-05/0.4663, allocations: 8.375 kB / 1.324 GB, free: 15.61 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.91e-05/0.4663, allocations: 8.375 kB / 1.324 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003171/0.4666, allocations: 124.8 kB / 1.324 GB, free: 15.46 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.4666, allocations: 11.81 kB / 1.324 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.4666, allocations: 0 / 1.324 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.4666, allocations: 0 / 1.324 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003052/0.467, allocations: 75.92 kB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008341/0.4678, allocations: 0.4932 MB / 1.325 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003526/0.4681, allocations: 111.8 kB / 1.325 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001718/0.4683, allocations: 50.61 kB / 1.325 GB, free: 14.63 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.757e-05/0.4683, allocations: 4 kB / 1.325 GB, free: 14.63 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.552e-05/0.4684, allocations: 38.5 kB / 1.325 GB, free: 14.58 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.173e-06/0.4684, allocations: 4 kB / 1.325 GB, free: 14.58 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0006615/0.4691, allocations: 157.5 kB / 1.325 GB, free: 14.42 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.986e-05/0.4692, allocations: 102.8 kB / 1.325 GB, free: 14.29 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/0.4693, allocations: 152.5 kB / 1.326 GB, free: 14.14 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.876e-05/0.4693, allocations: 29.7 kB / 1.326 GB, free: 14.1 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.422e-05/0.4694, allocations: 112.2 kB / 1.326 GB, free: 13.98 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.884e-05/0.4695, allocations: 19.86 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.961e-05/0.4696, allocations: 25.7 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002253/0.4698, allocations: 330.8 kB / 1.326 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.4699, allocations: 39.97 kB / 1.326 GB, free: 13.56 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001993/0.4701, allocations: 85.05 kB / 1.326 GB, free: 13.46 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003094/0.4705, allocations: 90.75 kB / 1.326 GB, free: 13.36 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.4705, allocations: 4 kB / 1.326 GB, free: 13.36 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004012/0.4709, allocations: 145.4 kB / 1.326 GB, free: 13.21 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.4709, allocations: 4 kB / 1.326 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.4709, allocations: 4 kB / 1.326 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.4709, allocations: 0 / 1.326 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.4711, allocations: 19.92 kB / 1.326 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.4711, allocations: 4 kB / 1.326 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000134/0.4712, allocations: 27.86 kB / 1.326 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.289e-05/0.4712, allocations: 7.938 kB / 1.326 GB, free: 13.14 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.0001314/0.4713, allocations: 126.4 kB / 1.327 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.434e-05/0.4714, allocations: 11.95 kB / 1.327 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000334/0.4718, allocations: 85.83 kB / 1.327 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.4718, allocations: 8 kB / 1.327 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.4718, allocations: 0 / 1.327 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4718, allocations: 0 / 1.327 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003535/0.4721, allocations: 209.5 kB / 1.327 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.4721, allocations: 0 / 1.327 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001287/0.4723, allocations: 24.05 kB / 1.327 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.4723, allocations: 0 / 1.327 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.4723, allocations: 0 / 1.327 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.658e-06/0.4723, allocations: 4 kB / 1.327 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4723, allocations: 0 / 1.327 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005368/0.4728, allocations: 377.9 kB / 1.327 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.318e-05/0.4729, allocations: 89 kB / 1.327 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.678e-05/0.4729, allocations: 4 kB / 1.327 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002151/0.4731, allocations: 23.97 kB / 1.327 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.822e-05/0.4732, allocations: 19.97 kB / 1.327 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.4732, allocations: 4 kB / 1.327 GB, free: 12.07 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001058/0.4733, allocations: 112.6 kB / 1.328 GB, free: 11.96 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.4733, allocations: 0 / 1.328 GB, free: 11.96 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003336/0.4737, allocations: 23.95 kB / 1.328 GB, free: 11.94 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.0001999/0.4739, allocations: 115.1 kB / 1.328 GB, free: 11.82 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004346/0.4743, allocations: 91.86 kB / 1.328 GB, free: 11.73 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.4743, allocations: 0 / 1.328 GB, free: 11.73 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001851/0.4745, allocations: 47.95 kB / 1.328 GB, free: 11.68 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005114/0.475, allocations: 20.52 kB / 1.328 GB, free: 11.67 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005681/0.4756, allocations: 207.3 kB / 1.328 GB, free: 11.43 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004362/0.476, allocations: 0.7002 MB / 1.329 GB, free: 10.7 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.84e-05/0.4761, allocations: 17.06 kB / 1.329 GB, free: 10.68 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.621e-05/0.4762, allocations: 23.42 kB / 1.329 GB, free: 10.66 MB / 1.029 GB Notification: Performance of SimCode: time 3.81e-07/0.4762, allocations: 4 kB / 1.329 GB, free: 10.66 MB / 1.029 GB Notification: Performance of Templates: time 0.005202/0.4814, allocations: 1.366 MB / 1.33 GB, free: 9.293 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/jenkins/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: 9.479416884016246]