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.001471/0.001471, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001689/0.00169, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.393/1.393, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.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.263/2.263, allocations: 390.3 MB / 0.6653 GB, free: 0.7656 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 67.91 kB / 0.8132 GB, free: 33.14 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3238, allocations: 140.4 MB / 0.9503 GB, free: 8.887 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002381/0.3262, allocations: 1.022 MB / 0.9513 GB, free: 7.855 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001871/0.3281, allocations: 1.307 MB / 0.9526 GB, free: 6.531 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.237e-05/0.3282, allocations: 4 kB / 0.9526 GB, free: 6.527 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 5.441e-05/0.3283, allocations: 15.8 kB / 0.9526 GB, free: 6.512 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001336/0.3285, allocations: 39.59 kB / 0.9526 GB, free: 6.473 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007964/0.3293, allocations: 263.3 kB / 0.9529 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003572/0.3296, allocations: 335.4 kB / 0.9532 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.3298, allocations: 45.64 kB / 0.9532 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001826/0.33, allocations: 127.6 kB / 0.9534 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.3302, allocations: 107.6 kB / 0.9535 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.575e-05/0.3302, allocations: 32 kB / 0.9535 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.3304, allocations: 51.92 kB / 0.9535 GB, free: 5.531 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.628e-05/0.3304, allocations: 35.86 kB / 0.9536 GB, free: 5.496 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001912/0.3306, allocations: 119.5 kB / 0.9537 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004107/0.331, allocations: 335.3 kB / 0.954 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.331, allocations: 0 / 0.954 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.102e-06/0.331, allocations: 0 / 0.954 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.037e-06/0.3311, allocations: 4 kB / 0.954 GB, free: 5.047 MB / 0.7325 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.0009461/0.332, allocations: 0.5604 MB / 0.9546 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.3321, allocations: 12.03 kB / 0.9546 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.272e-05/0.3321, allocations: 24.75 kB / 0.9546 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008417/0.333, allocations: 311.9 kB / 0.9549 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.333, allocations: 16.31 kB / 0.9549 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.869e-05/0.3331, allocations: 24.36 kB / 0.9549 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000343/0.3334, allocations: 130.1 kB / 0.9551 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.3335, allocations: 7.875 kB / 0.9551 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.654e-05/0.3335, allocations: 4 kB / 0.9551 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.3335, allocations: 4 kB / 0.9551 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002423/0.3337, allocations: 75.94 kB / 0.9551 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008904/0.3346, allocations: 0.6413 MB / 0.9558 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004121/0.3351, allocations: 139.9 kB / 0.9559 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.3352, allocations: 58.64 kB / 0.956 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.3353, allocations: 4 kB / 0.956 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003578/0.3356, allocations: 148.8 kB / 0.9561 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 2.235e-06/0.3356, allocations: 0 / 0.9561 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0006137/0.3363, allocations: 197.3 kB / 0.9563 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.33e-05/0.3364, allocations: 106.8 kB / 0.9564 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001955/0.3366, allocations: 202.4 kB / 0.9566 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.828e-05/0.3366, allocations: 37.7 kB / 0.9566 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.3368, allocations: 124.5 kB / 0.9567 GB, free: 1.969 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.307e-05/0.3368, allocations: 39.61 kB / 0.9568 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001441/0.337, allocations: 61.69 kB / 0.9568 GB, free: 1.863 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001531/0.3371, allocations: 330.8 kB / 0.9572 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002646/0.3374, allocations: 83.95 kB / 0.9572 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003592/0.3378, allocations: 169.3 kB / 0.9574 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004044/0.3382, allocations: 225.8 kB / 0.9576 GB, free: 1 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.3382, allocations: 4 kB / 0.9576 GB, free: 0.9961 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007081/0.3389, allocations: 352.9 kB / 0.958 GB, free: 0.6328 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.412e-05/0.339, allocations: 65.58 kB / 0.958 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.339, allocations: 8.125 kB / 0.958 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.339, allocations: 0 / 0.958 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.3391, allocations: 23.98 kB / 0.958 GB, free: 0.5273 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.3391, allocations: 7.875 kB / 0.9581 GB, free: 0.5195 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000441/0.3396, allocations: 71.75 kB / 0.9581 GB, free: 460 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.827e-05/0.3396, allocations: 12 kB / 0.9581 GB, free: 448 kB / 0.7325 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.0001528/0.3398, allocations: 142.8 kB / 0.9583 GB, free: 296 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.261e-05/0.3398, allocations: 19.75 kB / 0.9583 GB, free: 276 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002977/0.3401, allocations: 94.58 kB / 0.9584 GB, free: 180 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.3402, allocations: 4 kB / 0.9584 GB, free: 176 kB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.3402, allocations: 3.938 kB / 0.9584 GB, free: 172 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.3402, allocations: 4 kB / 0.9584 GB, free: 168 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003078/0.3405, allocations: 237.5 kB / 0.9586 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.3405, allocations: 4 kB / 0.9586 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.743e-05/0.3406, allocations: 11.98 kB / 0.9586 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.3406, allocations: 4 kB / 0.9586 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.3406, allocations: 3.984 kB / 0.9586 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.73e-06/0.3407, allocations: 4 kB / 0.9586 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.3407, allocations: 3.938 kB / 0.9586 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004596/0.3411, allocations: 198.6 kB / 0.9588 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.956e-05/0.3412, allocations: 88.92 kB / 0.9589 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.676e-05/0.3413, allocations: 4 kB / 0.9589 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.3414, allocations: 11.98 kB / 0.9589 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.917e-05/0.3415, allocations: 31.89 kB / 0.959 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.3415, allocations: 11.98 kB / 0.959 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001391/0.3416, allocations: 144 kB / 0.9591 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3416, allocations: 0 / 0.9591 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000312/0.342, allocations: 51.89 kB / 0.9592 GB, free: 15.28 MB / 0.7481 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.0002182/0.3422, allocations: 111.2 kB / 0.9593 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007043/0.3429, allocations: 330.6 kB / 0.9596 GB, free: 14.81 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.3429, allocations: 4 kB / 0.9596 GB, free: 14.81 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001862/0.3431, allocations: 63.91 kB / 0.9597 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003513/0.3435, allocations: 47.69 kB / 0.9597 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006224/0.3441, allocations: 318.6 kB / 0.96 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.3444, allocations: 0.7202 MB / 0.9607 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.541e-05/0.3445, allocations: 31.42 kB / 0.9607 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of SimCode: time 6.11e-07/0.3445, allocations: 0 / 0.9607 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of Templates: time 0.005562/0.3501, allocations: 2.786 MB / 0.9635 GB, free: 10.8 MB / 0.7481 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/jenkins1/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