Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009849/0.0009849, allocations: 91.69 kB / 16.02 MB, free: 80 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.001345/0.001345, allocations: 179.2 kB / 16.92 MB, free: 6.652 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.405/1.405, allocations: 223.3 MB / 241 MB, free: 5.305 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.301/2.301, allocations: 390.9 MB / 0.667 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004265/0.0004266, allocations: 12 kB / 0.8166 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7006/0.701, allocations: 142.4 MB / 0.9557 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.0007757/0.7018, allocations: 436 kB / 0.9561 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001417/0.7033, allocations: 1.292 MB / 0.9574 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.528e-05/0.7033, allocations: 1.281 kB / 0.9574 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.749e-05/0.7034, allocations: 3.938 kB / 0.9574 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.386e-05/0.7034, allocations: 9.266 kB / 0.9574 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006919/0.7041, allocations: 290.2 kB / 0.9577 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002039/0.7043, allocations: 231.4 kB / 0.9579 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.7045, allocations: 18.03 kB / 0.9579 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.7046, allocations: 82.47 kB / 0.958 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.7047, allocations: 71.7 kB / 0.9581 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.406e-05/0.7047, allocations: 12.56 kB / 0.9581 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.484e-05/0.7048, allocations: 30.27 kB / 0.9581 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.099e-05/0.7048, allocations: 13.8 kB / 0.9581 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.427e-05/0.7049, allocations: 100.3 kB / 0.9582 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001584/0.7051, allocations: 151.8 kB / 0.9584 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.7051, allocations: 1.344 kB / 0.9584 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.763e-06/0.7051, allocations: 0 / 0.9584 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.7051, allocations: 0 / 0.9584 GB, free: 5.719 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003949/0.7055, allocations: 456.4 kB / 0.9588 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.7056, allocations: 8.75 kB / 0.9588 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.531e-05/0.7056, allocations: 18.94 kB / 0.9588 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.894e-05/0.7057, allocations: 181.2 kB / 0.959 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.82e-05/0.7058, allocations: 6.031 kB / 0.959 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.862e-05/0.7058, allocations: 17.59 kB / 0.959 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.7059, allocations: 55.42 kB / 0.9591 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-06/0.706, allocations: 5.25 kB / 0.9591 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.706, allocations: 3.984 kB / 0.9591 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.706, allocations: 5.188 kB / 0.9591 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.148e-05/0.706, allocations: 14.66 kB / 0.9591 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000473/0.7065, allocations: 427.1 kB / 0.9595 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.24e-05/0.7066, allocations: 31.62 kB / 0.9595 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.3e-05/0.7066, allocations: 20.11 kB / 0.9596 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.7067, allocations: 1 kB / 0.9596 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001804/0.7068, allocations: 101.7 kB / 0.9597 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.7069, allocations: 0 / 0.9597 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0002806/0.7071, allocations: 139.2 kB / 0.9598 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.957e-05/0.7072, allocations: 57.31 kB / 0.9598 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.3e-05/0.7073, allocations: 138 kB / 0.96 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.7073, allocations: 35.98 kB / 0.96 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.587e-05/0.7074, allocations: 99.75 kB / 0.9601 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.7074, allocations: 22.75 kB / 0.9601 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.223e-05/0.7075, allocations: 28.61 kB / 0.9602 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.1e-05/0.7075, allocations: 329.4 kB / 0.9605 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.7077, allocations: 85.02 kB / 0.9606 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.7079, allocations: 132.8 kB / 0.9607 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002205/0.7081, allocations: 240.3 kB / 0.9609 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.7081, allocations: 0 / 0.9609 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005157/0.7086, allocations: 373.7 kB / 0.9613 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.981e-05/0.7087, allocations: 100.3 kB / 0.9614 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.7087, allocations: 5.375 kB / 0.9614 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.7087, allocations: 2.75 kB / 0.9614 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.572e-05/0.7088, allocations: 10.67 kB / 0.9614 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.7088, allocations: 2.75 kB / 0.9614 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005856/0.7094, allocations: 112.8 kB / 0.9615 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.018e-05/0.7094, allocations: 20.14 kB / 0.9615 GB, free: 2.883 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: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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 9.82e-05/0.7095, allocations: 138.7 kB / 0.9616 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.625e-05/0.7095, allocations: 8.125 kB / 0.9616 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.518e-05/0.7096, allocations: 9.812 kB / 0.9617 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.7096, allocations: 1.469 kB / 0.9617 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.7096, allocations: 0 / 0.9617 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.7096, allocations: 0 / 0.9617 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001114/0.7097, allocations: 197.7 kB / 0.9618 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.7097, allocations: 4 kB / 0.9618 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.087e-05/0.7097, allocations: 6.062 kB / 0.9619 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.7097, allocations: 1.094 kB / 0.9619 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.7098, allocations: 9.203 kB / 0.9619 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.7098, allocations: 5.172 kB / 0.9619 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.7098, allocations: 0 / 0.9619 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001946/0.71, allocations: 136.2 kB / 0.962 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.032e-05/0.71, allocations: 82.86 kB / 0.9621 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.172e-05/0.71, allocations: 6.266 kB / 0.9621 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.595e-05/0.7101, allocations: 8 kB / 0.9621 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.688e-05/0.7101, allocations: 8.141 kB / 0.9621 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.7101, allocations: 8.188 kB / 0.9621 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.529e-05/0.7102, allocations: 99.34 kB / 0.9622 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7102, allocations: 0 / 0.9622 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002734/0.7105, allocations: 43.53 kB / 0.9622 GB, free: 2.184 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001381/0.7106, allocations: 114.3 kB / 0.9624 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004094/0.711, allocations: 363 kB / 0.9627 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.711, allocations: 1 kB / 0.9627 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.054e-05/0.7111, allocations: 48.69 kB / 0.9627 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002683/0.7114, allocations: 18.48 kB / 0.9628 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003562/0.7118, allocations: 230.6 kB / 0.963 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001066/0.7119, allocations: 0.6958 MB / 0.9637 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.453e-05/0.7119, allocations: 21.14 kB / 0.9637 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/0.7119, allocations: 0 / 0.9637 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of Templates: time 0.003537/0.7155, allocations: 1.858 MB / 0.9655 GB, free: 15.88 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches