Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001502/0.001502, allocations: 107.7 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.001715/0.001715, allocations: 195.8 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.361/1.361, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.501/2.501, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002207/0.002207, allocations: 64 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3409, allocations: 153 MB / 1.027 GB, free: 2.059 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002333/0.3432, allocations: 0.7182 MB / 1.027 GB, free: 1.348 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001387/0.3447, allocations: 1.263 MB / 1.029 GB, free: 72 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.183e-05/0.3447, allocations: 0 / 1.029 GB, free: 72 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.272e-05/0.3448, allocations: 11.86 kB / 1.029 GB, free: 60 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.015e-05/0.3448, allocations: 11.88 kB / 1.029 GB, free: 48 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008981/0.3457, allocations: 319.1 kB / 1.029 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002832/0.346, allocations: 271.5 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.3461, allocations: 20.17 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001266/0.3463, allocations: 95.86 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001678/0.3464, allocations: 91.73 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.347e-05/0.3465, allocations: 24 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.801e-05/0.3466, allocations: 35.98 kB / 1.03 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.256e-05/0.3466, allocations: 8 kB / 1.03 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.3467, allocations: 87.73 kB / 1.03 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002814/0.347, allocations: 227.4 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.347, allocations: 0 / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3471, allocations: 4 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.315e-06/0.3471, allocations: 0 / 1.03 GB, free: 14.89 MB / 0.8106 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.0007092/0.3478, allocations: 488.4 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.3478, allocations: 12.03 kB / 1.03 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.283e-05/0.3479, allocations: 12.84 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.348, allocations: 172.3 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.3481, allocations: 12.38 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.031e-05/0.3481, allocations: 20.3 kB / 1.031 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.3483, allocations: 58.23 kB / 1.031 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.3483, allocations: 7.938 kB / 1.031 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.3483, allocations: 0 / 1.031 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.3483, allocations: 0 / 1.031 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.068e-05/0.3484, allocations: 19.98 kB / 1.031 GB, free: 14 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005469/0.3489, allocations: 420.4 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.775e-05/0.349, allocations: 38.56 kB / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.521e-05/0.349, allocations: 20.8 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.134e-05/0.349, allocations: 8.078 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001394/0.3492, allocations: 99.2 kB / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 2.895e-06/0.3492, allocations: 3.984 kB / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0003353/0.3495, allocations: 141.5 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.3496, allocations: 59.39 kB / 1.031 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.3497, allocations: 133.8 kB / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.523e-05/0.3498, allocations: 33.7 kB / 1.032 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.478e-05/0.3498, allocations: 100 kB / 1.032 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.11e-05/0.3499, allocations: 19.88 kB / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.35, allocations: 69.66 kB / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3501, allocations: 322.8 kB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/0.3503, allocations: 87.94 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002121/0.3505, allocations: 138 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002492/0.3508, allocations: 231 kB / 1.032 GB, free: 11.92 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3508, allocations: 4 kB / 1.032 GB, free: 11.92 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005471/0.3513, allocations: 377.5 kB / 1.033 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.368e-05/0.3514, allocations: 101.1 kB / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3514, allocations: 0 / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.3514, allocations: 4 kB / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.298e-05/0.3515, allocations: 8.312 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.3515, allocations: 0 / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004653/0.352, allocations: 83.94 kB / 1.033 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-05/0.352, allocations: 23.97 kB / 1.033 GB, free: 11.29 MB / 0.8106 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.0001186/0.3522, allocations: 137.6 kB / 1.033 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.357e-05/0.3522, allocations: 7.906 kB / 1.033 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.77e-05/0.3522, allocations: 16.38 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.3522, allocations: 0 / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3522, allocations: 0 / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.3522, allocations: 3.984 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.3524, allocations: 193.6 kB / 1.033 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3524, allocations: 4 kB / 1.033 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.916e-06/0.3524, allocations: 0 / 1.033 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.3524, allocations: 0 / 1.033 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.3524, allocations: 7.984 kB / 1.033 GB, free: 10.87 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.3524, allocations: 0 / 1.033 GB, free: 10.87 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3524, allocations: 3.938 kB / 1.033 GB, free: 10.87 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001699/0.3526, allocations: 144.9 kB / 1.034 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.275e-05/0.3527, allocations: 84.95 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.3527, allocations: 7.984 kB / 1.034 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.176e-05/0.3527, allocations: 0 / 1.034 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.814e-05/0.3528, allocations: 11.98 kB / 1.034 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.3528, allocations: 8 kB / 1.034 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.1e-05/0.3528, allocations: 98.08 kB / 1.034 GB, free: 10.48 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3528, allocations: 4 kB / 1.034 GB, free: 10.48 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002497/0.3531, allocations: 40 kB / 1.034 GB, free: 10.44 MB / 0.8106 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.0001467/0.3532, allocations: 112.9 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005114/0.3538, allocations: 366 kB / 1.034 GB, free: 9.93 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3538, allocations: 0 / 1.034 GB, free: 9.93 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.164e-05/0.3538, allocations: 39.92 kB / 1.034 GB, free: 9.891 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002492/0.3541, allocations: 28.58 kB / 1.034 GB, free: 9.863 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003592/0.3545, allocations: 191 kB / 1.034 GB, free: 9.645 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.3547, allocations: 0.6924 MB / 1.035 GB, free: 8.926 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.002e-05/0.3548, allocations: 8.438 kB / 1.035 GB, free: 8.918 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.347e-05/0.3548, allocations: 19.42 kB / 1.035 GB, free: 8.898 MB / 0.8106 GB Notification: Performance of SimCode: time 1.934e-06/0.3548, allocations: 0 / 1.035 GB, free: 8.898 MB / 0.8106 GB Notification: Performance of Templates: time 0.005789/0.3606, allocations: 2.622 MB / 1.038 GB, free: 6.309 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches