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.001237/0.001237, allocations: 110.7 kB / 16.37 MB, free: 6.004 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.001103/0.001103, allocations: 195.8 kB / 17.31 MB, free: 5.613 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.16 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.286/2.286, allocations: 390.3 MB / 0.6655 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 74.44 kB / 0.814 GB, free: 32.6 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3373, allocations: 140.4 MB / 0.9511 GB, free: 8.035 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002224/0.3395, allocations: 0.7121 MB / 0.9518 GB, free: 7.324 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001618/0.3412, allocations: 1.259 MB / 0.9531 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.743e-05/0.3412, allocations: 0 / 0.9531 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.659e-05/0.3413, allocations: 11.92 kB / 0.9531 GB, free: 6.039 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.784e-05/0.3414, allocations: 23.73 kB / 0.9531 GB, free: 6.016 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008471/0.3422, allocations: 306.8 kB / 0.9534 GB, free: 5.723 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003637/0.3426, allocations: 267.6 kB / 0.9536 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.3427, allocations: 20.16 kB / 0.9537 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.3429, allocations: 99.86 kB / 0.9538 GB, free: 5.34 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.343, allocations: 91.73 kB / 0.9539 GB, free: 5.25 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.297e-05/0.3431, allocations: 28 kB / 0.9539 GB, free: 5.223 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.379e-05/0.3432, allocations: 43.92 kB / 0.9539 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.45e-05/0.3432, allocations: 11.94 kB / 0.9539 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.3433, allocations: 83.8 kB / 0.954 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002561/0.3436, allocations: 219.3 kB / 0.9542 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3436, allocations: 0 / 0.9542 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.933e-06/0.3436, allocations: 0 / 0.9542 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.568e-06/0.3436, allocations: 0 / 0.9542 GB, free: 4.871 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006264/0.3443, allocations: 0.4885 MB / 0.9547 GB, free: 4.316 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.3443, allocations: 11.97 kB / 0.9547 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.066e-05/0.3444, allocations: 20.84 kB / 0.9547 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.3445, allocations: 168.3 kB / 0.9549 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.3446, allocations: 8.375 kB / 0.9549 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.167e-05/0.3446, allocations: 16.36 kB / 0.9549 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000142/0.3448, allocations: 62.16 kB / 0.955 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.3448, allocations: 3.938 kB / 0.955 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.3448, allocations: 4 kB / 0.955 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.3448, allocations: 0 / 0.955 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.421e-05/0.3449, allocations: 23.98 kB / 0.955 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005766/0.3454, allocations: 416.4 kB / 0.9554 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 6.492e-05/0.3455, allocations: 34.5 kB / 0.9554 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.779e-05/0.3456, allocations: 16.86 kB / 0.9554 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 8.936e-06/0.3456, allocations: 0 / 0.9554 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002012/0.3458, allocations: 107.3 kB / 0.9556 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.3458, allocations: 4 kB / 0.9556 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0003174/0.3461, allocations: 137.5 kB / 0.9557 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.184e-05/0.3462, allocations: 59.34 kB / 0.9557 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.3463, allocations: 129.8 kB / 0.9559 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.3463, allocations: 37.7 kB / 0.9559 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.738e-05/0.3464, allocations: 100.1 kB / 0.956 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.011e-05/0.3464, allocations: 15.81 kB / 0.956 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.3466, allocations: 69.66 kB / 0.9561 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.3467, allocations: 322.8 kB / 0.9564 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.3469, allocations: 91.94 kB / 0.9565 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002065/0.3471, allocations: 135.8 kB / 0.9566 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002808/0.3474, allocations: 238.7 kB / 0.9568 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3474, allocations: 3.938 kB / 0.9568 GB, free: 1.898 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005976/0.348, allocations: 378.8 kB / 0.9572 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.79e-05/0.3481, allocations: 97.28 kB / 0.9573 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3481, allocations: 4 kB / 0.9573 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.3481, allocations: 4 kB / 0.9573 GB, free: 1.383 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.173e-05/0.3481, allocations: 3.938 kB / 0.9573 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.3481, allocations: 7.938 kB / 0.9573 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004322/0.3486, allocations: 83.75 kB / 0.9574 GB, free: 1.289 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.343e-05/0.3486, allocations: 23.97 kB / 0.9574 GB, free: 1.266 MB / 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: 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 0.0001309/0.3488, allocations: 132 kB / 0.9575 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.783e-05/0.3488, allocations: 11.89 kB / 0.9575 GB, free: 1.117 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.226e-05/0.3488, allocations: 12.38 kB / 0.9576 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.3488, allocations: 0 / 0.9576 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.3488, allocations: 0 / 0.9576 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.3489, allocations: 0 / 0.9576 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001513/0.349, allocations: 193.5 kB / 0.9577 GB, free: 0.8672 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.349, allocations: 4 kB / 0.9577 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.323e-05/0.349, allocations: 7.938 kB / 0.9578 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.349, allocations: 0 / 0.9578 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.3491, allocations: 7.984 kB / 0.9578 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.3491, allocations: 4 kB / 0.9578 GB, free: 0.8438 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3491, allocations: 0 / 0.9578 GB, free: 0.8438 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001767/0.3493, allocations: 132.9 kB / 0.9579 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.447e-05/0.3493, allocations: 88.95 kB / 0.958 GB, free: 0.5898 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.566e-05/0.3493, allocations: 3.984 kB / 0.958 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.617e-05/0.3494, allocations: 12 kB / 0.958 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.941e-05/0.3494, allocations: 7.984 kB / 0.958 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.3494, allocations: 4 kB / 0.958 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.372e-05/0.3495, allocations: 101.9 kB / 0.9581 GB, free: 476 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3495, allocations: 0 / 0.9581 GB, free: 476 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002493/0.3498, allocations: 44 kB / 0.9581 GB, free: 432 kB / 0.7325 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.0001551/0.3499, allocations: 103.2 kB / 0.9582 GB, free: 316 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004624/0.3504, allocations: 373.9 kB / 0.9586 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3504, allocations: 0 / 0.9586 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 7.31e-05/0.3505, allocations: 44.02 kB / 0.9586 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002494/0.3507, allocations: 28.08 kB / 0.9587 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003623/0.3511, allocations: 195.3 kB / 0.9589 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.3514, allocations: 0.7 MB / 0.9595 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.018e-05/0.3514, allocations: 8.438 kB / 0.9595 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.416e-05/0.3514, allocations: 19.42 kB / 0.9596 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of SimCode: time 2.3e-07/0.3514, allocations: 0 / 0.9596 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of Templates: time 0.005229/0.3567, allocations: 2.614 MB / 0.9621 GB, free: 12.27 MB / 0.7481 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 -s cvode -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