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.001129/0.001129, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 196.1 kB / 16.79 MB, free: 6.809 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.396/1.396, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.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.376/2.376, allocations: 390.2 MB / 0.6649 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 71.89 kB / 0.8125 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8444/0.8459, allocations: 140.4 MB / 0.9496 GB, free: 9.359 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002279/0.8483, allocations: 1.075 MB / 0.9507 GB, free: 8.527 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001767/0.8501, allocations: 1.34 MB / 0.952 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.8502, allocations: 1.5 kB / 0.952 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 6.408e-05/0.8503, allocations: 7.875 kB / 0.952 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001592/0.8505, allocations: 31.59 kB / 0.952 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006973/0.8512, allocations: 238.9 kB / 0.9522 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002985/0.8515, allocations: 288.6 kB / 0.9525 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.8516, allocations: 44.56 kB / 0.9526 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002044/0.8518, allocations: 107.1 kB / 0.9527 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001528/0.852, allocations: 97.53 kB / 0.9527 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.787e-05/0.8521, allocations: 15.47 kB / 0.9528 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.8522, allocations: 27.61 kB / 0.9528 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.715e-05/0.8522, allocations: 30.38 kB / 0.9528 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.8524, allocations: 105.3 kB / 0.9529 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002306/0.8526, allocations: 255.5 kB / 0.9532 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.8526, allocations: 1.281 kB / 0.9532 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.01e-07/0.8526, allocations: 3.938 kB / 0.9532 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.007e-05/0.8526, allocations: 0 / 0.9532 GB, free: 6.633 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.0009297/0.8536, allocations: 0.5666 MB / 0.9537 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.8536, allocations: 9.344 kB / 0.9537 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.8538, allocations: 27.16 kB / 0.9538 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007878/0.8545, allocations: 308.2 kB / 0.954 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.257e-05/0.8546, allocations: 12.03 kB / 0.9541 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.12e-05/0.8546, allocations: 18.56 kB / 0.9541 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002688/0.8549, allocations: 139.9 kB / 0.9542 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.8549, allocations: 5.125 kB / 0.9542 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.855, allocations: 9.328 kB / 0.9542 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.855, allocations: 1.219 kB / 0.9542 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002199/0.8552, allocations: 71.8 kB / 0.9543 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006577/0.8559, allocations: 0.643 MB / 0.9549 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003526/0.8562, allocations: 142.6 kB / 0.9551 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.8564, allocations: 50.73 kB / 0.9551 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.8564, allocations: 2.5 kB / 0.9551 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003093/0.8567, allocations: 146.6 kB / 0.9552 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.744e-06/0.8567, allocations: 0 / 0.9552 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0005563/0.8573, allocations: 199.4 kB / 0.9554 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.8573, allocations: 112.8 kB / 0.9555 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/0.8575, allocations: 197 kB / 0.9557 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.022e-05/0.8575, allocations: 35.83 kB / 0.9558 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.837e-05/0.8576, allocations: 131.6 kB / 0.9559 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.755e-05/0.8577, allocations: 37.05 kB / 0.9559 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.8578, allocations: 62.78 kB / 0.956 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.944e-05/0.8579, allocations: 334.9 kB / 0.9563 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002418/0.8581, allocations: 86.36 kB / 0.9564 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002529/0.8584, allocations: 156.1 kB / 0.9565 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003481/0.8587, allocations: 235.4 kB / 0.9568 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.8587, allocations: 1.125 kB / 0.9568 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006316/0.8594, allocations: 346.5 kB / 0.9571 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.2e-05/0.8594, allocations: 68.2 kB / 0.9572 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.8594, allocations: 2 kB / 0.9572 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.8595, allocations: 2.188 kB / 0.9572 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.666e-05/0.8596, allocations: 24.98 kB / 0.9572 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.8596, allocations: 5.875 kB / 0.9572 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003686/0.86, allocations: 78.08 kB / 0.9573 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.691e-05/0.86, allocations: 11.5 kB / 0.9573 GB, free: 3.059 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.0001202/0.8601, allocations: 139.6 kB / 0.9574 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.049e-05/0.8602, allocations: 16.19 kB / 0.9574 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002432/0.8604, allocations: 94.95 kB / 0.9575 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.8604, allocations: 1.75 kB / 0.9575 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.8604, allocations: 5.531 kB / 0.9575 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.8604, allocations: 1.188 kB / 0.9575 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001753/0.8606, allocations: 237.7 kB / 0.9578 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.8606, allocations: 5.703 kB / 0.9578 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.87e-05/0.8607, allocations: 18.98 kB / 0.9578 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.8607, allocations: 0 / 0.9578 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.8608, allocations: 11.59 kB / 0.9578 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.8608, allocations: 5.797 kB / 0.9578 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.8608, allocations: 3.938 kB / 0.9578 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003317/0.8611, allocations: 182.7 kB / 0.958 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.349e-05/0.8612, allocations: 98.3 kB / 0.9581 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.438e-05/0.8612, allocations: 10.75 kB / 0.9581 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.8613, allocations: 9.484 kB / 0.9581 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.99e-05/0.8614, allocations: 30.89 kB / 0.9581 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/0.8614, allocations: 8.297 kB / 0.9581 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.99e-05/0.8615, allocations: 147.6 kB / 0.9583 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8615, allocations: 1.375 kB / 0.9583 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000312/0.8618, allocations: 42.5 kB / 0.9583 GB, free: 2.176 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.000178/0.862, allocations: 118.6 kB / 0.9584 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005507/0.8626, allocations: 315 kB / 0.9587 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.8626, allocations: 0 / 0.9587 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001792/0.8628, allocations: 68.16 kB / 0.9588 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.8631, allocations: 42.59 kB / 0.9588 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00052/0.8636, allocations: 371.7 kB / 0.9592 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001692/0.8638, allocations: 0.7199 MB / 0.9599 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.002e-05/0.8639, allocations: 23.52 kB / 0.9599 GB, free: 0.7656 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.8639, allocations: 0 / 0.9599 GB, free: 0.7656 MB / 0.7169 GB Notification: Performance of Templates: time 0.006335/0.8702, allocations: 2.783 MB / 0.9626 GB, free: 15.33 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/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