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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001714/0.001714, allocations: 108 kB / 16.37 MB, free: 6.477 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.001877/0.001877, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.565/1.565, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.497/2.497, allocations: 390.3 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002626/0.002626, allocations: 67.23 kB / 0.814 GB, free: 32.82 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3318, allocations: 140.4 MB / 0.9511 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.003041/0.3349, allocations: 1.037 MB / 0.9522 GB, free: 7.004 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001952/0.3368, allocations: 1.315 MB / 0.9534 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.337, allocations: 0 / 0.9534 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 5.475e-05/0.337, allocations: 11.81 kB / 0.9534 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001321/0.3372, allocations: 35.66 kB / 0.9535 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007492/0.338, allocations: 263.2 kB / 0.9537 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000387/0.3384, allocations: 335.4 kB / 0.9541 GB, free: 5.043 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.3385, allocations: 41.66 kB / 0.9541 GB, free: 5 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001599/0.3387, allocations: 131.6 kB / 0.9542 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000192/0.3389, allocations: 123.5 kB / 0.9543 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.968e-05/0.339, allocations: 32 kB / 0.9544 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.3391, allocations: 43.98 kB / 0.9544 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.799e-05/0.3391, allocations: 39.84 kB / 0.9544 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.3393, allocations: 119.5 kB / 0.9546 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004077/0.3397, allocations: 335 kB / 0.9549 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.3397, allocations: 0 / 0.9549 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.637e-06/0.3397, allocations: 0 / 0.9549 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.242e-05/0.3397, allocations: 3.938 kB / 0.9549 GB, free: 4.188 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.0009335/0.3407, allocations: 0.576 MB / 0.9554 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.3407, allocations: 8.031 kB / 0.9555 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.011e-05/0.3408, allocations: 24.75 kB / 0.9555 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007195/0.3415, allocations: 304 kB / 0.9558 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.3416, allocations: 12.36 kB / 0.9558 GB, free: 3.168 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.53e-05/0.3416, allocations: 20.38 kB / 0.9558 GB, free: 3.148 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002944/0.3419, allocations: 136.6 kB / 0.9559 GB, free: 3 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.3419, allocations: 3.938 kB / 0.9559 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.669e-05/0.342, allocations: 4 kB / 0.9559 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.342, allocations: 7.938 kB / 0.9559 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002353/0.3422, allocations: 83.81 kB / 0.956 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007784/0.343, allocations: 0.6334 MB / 0.9566 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003786/0.3434, allocations: 147.8 kB / 0.9568 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001463/0.3436, allocations: 46.72 kB / 0.9568 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.3436, allocations: 8 kB / 0.9568 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002696/0.3439, allocations: 145.7 kB / 0.957 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.373e-06/0.3439, allocations: 0 / 0.957 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0005454/0.3444, allocations: 205.8 kB / 0.9572 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.305e-05/0.3445, allocations: 102.8 kB / 0.9573 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000201/0.3447, allocations: 202.4 kB / 0.9575 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.452e-05/0.3448, allocations: 33.7 kB / 0.9575 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.669e-05/0.3449, allocations: 124.5 kB / 0.9576 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.224e-05/0.3449, allocations: 39.48 kB / 0.9577 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.3451, allocations: 69.67 kB / 0.9577 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.3452, allocations: 326.8 kB / 0.958 GB, free: 0.6641 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002403/0.3455, allocations: 91.94 kB / 0.9581 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002524/0.3457, allocations: 160.5 kB / 0.9583 GB, free: 396 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003641/0.3461, allocations: 229.3 kB / 0.9585 GB, free: 132 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3461, allocations: 0 / 0.9585 GB, free: 132 kB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006695/0.3468, allocations: 348.6 kB / 0.9588 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 5.554e-05/0.3469, allocations: 71.39 kB / 0.9589 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.3469, allocations: 0 / 0.9589 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.3469, allocations: 4 kB / 0.9589 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.347, allocations: 19.92 kB / 0.9589 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.759e-06/0.347, allocations: 3.938 kB / 0.9589 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003543/0.3474, allocations: 75.89 kB / 0.959 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.04e-05/0.3474, allocations: 15.98 kB / 0.959 GB, free: 15.57 MB / 0.7481 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.0001445/0.3476, allocations: 129.8 kB / 0.9591 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.987e-05/0.3476, allocations: 19.75 kB / 0.9591 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000272/0.3479, allocations: 98.86 kB / 0.9592 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.415e-06/0.3479, allocations: 8.031 kB / 0.9592 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/0.3479, allocations: 3.938 kB / 0.9593 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.3479, allocations: 0 / 0.9593 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002301/0.3482, allocations: 237.5 kB / 0.9595 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3482, allocations: 7.938 kB / 0.9595 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.094e-05/0.3483, allocations: 11.98 kB / 0.9595 GB, free: 15 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.3483, allocations: 7.938 kB / 0.9595 GB, free: 15 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.3483, allocations: 8 kB / 0.9595 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.3483, allocations: 4 kB / 0.9595 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3483, allocations: 3.938 kB / 0.9595 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003463/0.3487, allocations: 194.6 kB / 0.9597 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.603e-05/0.3488, allocations: 97.09 kB / 0.9598 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.419e-05/0.3488, allocations: 12 kB / 0.9598 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.608e-05/0.3489, allocations: 7.984 kB / 0.9598 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.982e-05/0.349, allocations: 35.83 kB / 0.9599 GB, free: 14.6 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.349, allocations: 8 kB / 0.9599 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001198/0.3491, allocations: 144 kB / 0.96 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3491, allocations: 0 / 0.96 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002703/0.3494, allocations: 47.91 kB / 0.96 GB, free: 14.4 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.0002125/0.3496, allocations: 115.2 kB / 0.9602 GB, free: 14.28 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005649/0.3502, allocations: 314.6 kB / 0.9605 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.3502, allocations: 0 / 0.9605 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001666/0.3504, allocations: 67.91 kB / 0.9605 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.3507, allocations: 47.69 kB / 0.9606 GB, free: 13.84 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005411/0.3512, allocations: 288.7 kB / 0.9608 GB, free: 13.53 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/0.3516, allocations: 0.7241 MB / 0.9615 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 9.341e-05/0.3517, allocations: 29.53 kB / 0.9616 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.061e-05/0.3517, allocations: 19.44 kB / 0.9616 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of SimCode: time 3.91e-07/0.3517, allocations: 0 / 0.9616 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of Templates: time 0.006828/0.3586, allocations: 3.274 MB / 0.9648 GB, free: 9.48 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 -s cvode -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