Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002258/0.002258, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002522/0.002522, allocations: 193.6 kB / 16.14 MB, free: 6.648 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.564/1.564, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.635/2.635, allocations: 390.2 MB / 0.6642 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 63.91 kB / 0.8119 GB, free: 14.81 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9833/0.9853, allocations: 140.4 MB / 0.9489 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002625/0.988, allocations: 1.084 MB / 0.95 GB, free: 8.277 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001756/0.9897, allocations: 1.332 MB / 0.9513 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.354e-05/0.9898, allocations: 2.312 kB / 0.9513 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 6.461e-05/0.9899, allocations: 11.86 kB / 0.9513 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001285/0.9901, allocations: 27.44 kB / 0.9513 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006665/0.9907, allocations: 250.9 kB / 0.9516 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003032/0.991, allocations: 284.5 kB / 0.9518 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.9912, allocations: 44.19 kB / 0.9519 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/0.9914, allocations: 111.4 kB / 0.952 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.9915, allocations: 98.12 kB / 0.9521 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.926e-05/0.9916, allocations: 14.16 kB / 0.9521 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.9917, allocations: 24.48 kB / 0.9521 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.978e-05/0.9918, allocations: 38.19 kB / 0.9522 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.9919, allocations: 97.08 kB / 0.9523 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003019/0.9922, allocations: 325.5 kB / 0.9526 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.9922, allocations: 0 / 0.9526 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.52e-07/0.9922, allocations: 0 / 0.9526 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.9922, allocations: 4 kB / 0.9526 GB, free: 6.328 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0008843/0.9931, allocations: 0.5563 MB / 0.9531 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.9932, allocations: 9.375 kB / 0.9531 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.74e-05/0.9932, allocations: 22.66 kB / 0.9531 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007243/0.994, allocations: 319.2 kB / 0.9534 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.994, allocations: 11.97 kB / 0.9535 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.438e-05/0.9941, allocations: 18.66 kB / 0.9535 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002793/0.9943, allocations: 132.9 kB / 0.9536 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.9944, allocations: 3.938 kB / 0.9536 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.9944, allocations: 9.312 kB / 0.9536 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.9944, allocations: 2.25 kB / 0.9536 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002377/0.9947, allocations: 79.44 kB / 0.9537 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006963/0.9954, allocations: 0.6463 MB / 0.9543 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000378/0.9957, allocations: 135 kB / 0.9545 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.9959, allocations: 54.8 kB / 0.9545 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.904e-05/0.9959, allocations: 5.469 kB / 0.9545 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002609/0.9962, allocations: 148.3 kB / 0.9547 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.332e-06/0.9962, allocations: 1.375 kB / 0.9547 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0005929/0.9968, allocations: 207.5 kB / 0.9549 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/0.9969, allocations: 105.1 kB / 0.955 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001621/0.997, allocations: 204 kB / 0.9551 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.349e-05/0.9971, allocations: 36.48 kB / 0.9552 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.693e-05/0.9972, allocations: 123.6 kB / 0.9553 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.651e-05/0.9972, allocations: 40.92 kB / 0.9553 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000119/0.9973, allocations: 61.86 kB / 0.9554 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.677e-05/0.9974, allocations: 327.2 kB / 0.9557 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002326/0.9976, allocations: 91.47 kB / 0.9558 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002468/0.9979, allocations: 159.1 kB / 0.956 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003473/0.9982, allocations: 227.4 kB / 0.9562 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.9983, allocations: 0 / 0.9562 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006193/0.9989, allocations: 349.2 kB / 0.9565 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.377e-05/0.9989, allocations: 66.3 kB / 0.9566 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.9989, allocations: 3.688 kB / 0.9566 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.999, allocations: 3.938 kB / 0.9566 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.357e-05/0.9991, allocations: 21.77 kB / 0.9566 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.9991, allocations: 5.25 kB / 0.9566 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003703/0.9995, allocations: 69.95 kB / 0.9567 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.776e-05/0.9995, allocations: 19.27 kB / 0.9567 GB, free: 2.758 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition4,pul.booPul.y,$PRE.pul.booPul.y,hysteresis1.y,$PRE.hysteresis1.y,$whenCondition1,$whenCondition2,pul1.booPul.y,$PRE.pul1.booPul.y,hysteresis2.y,$PRE.hysteresis2.y,hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * 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.0001245/0.9996, allocations: 136.3 kB / 0.9568 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.334e-05/0.9997, allocations: 16.19 kB / 0.9568 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002547/0.9999, allocations: 91.17 kB / 0.9569 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.279e-06/0.9999, allocations: 2.812 kB / 0.9569 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/1, allocations: 7.938 kB / 0.9569 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/1, allocations: 9.484 kB / 0.9569 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001859/1, allocations: 241.7 kB / 0.9572 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/1, allocations: 5.375 kB / 0.9572 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.005e-05/1, allocations: 14.73 kB / 0.9572 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/1, allocations: 1.344 kB / 0.9572 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/1, allocations: 1.688 kB / 0.9572 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/1, allocations: 2.75 kB / 0.9572 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/1, allocations: 3.938 kB / 0.9572 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003483/1.001, allocations: 194.9 kB / 0.9574 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.07e-05/1.001, allocations: 99.19 kB / 0.9575 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.037e-05/1.001, allocations: 1.938 kB / 0.9575 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/1.001, allocations: 13.61 kB / 0.9575 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.26e-05/1.001, allocations: 34.27 kB / 0.9575 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/1.001, allocations: 9 kB / 0.9575 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001048/1.001, allocations: 143.7 kB / 0.9577 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/1.001, allocations: 0 / 0.9577 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002984/1.001, allocations: 46.5 kB / 0.9577 GB, free: 1.871 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,hysteresis1.y,pul.booPul.y,$whenCondition1,$whenCondition2,hysteresis2.y,pul1.booPul.y,hysteresis.y) * Number of discrete states: 3 (hysteresis.y,hysteresis2.y,hysteresis1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000175/1.002, allocations: 112 kB / 0.9578 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005304/1.002, allocations: 321.5 kB / 0.9581 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/1.002, allocations: 1.406 kB / 0.9581 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001692/1.002, allocations: 65.55 kB / 0.9582 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/1.003, allocations: 41.47 kB / 0.9582 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00053/1.003, allocations: 341.4 kB / 0.9586 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001462/1.003, allocations: 0.7204 MB / 0.9593 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001037/1.003, allocations: 25.92 kB / 0.9593 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.477e-05/1.004, allocations: 18.31 kB / 0.9593 GB, free: 500 kB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/1.004, allocations: 1.25 kB / 0.9593 GB, free: 500 kB / 0.7169 GB Notification: Performance of Templates: time 0.00752/1.011, allocations: 3.005 MB / 0.9622 GB, free: 14.98 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches