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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.007126/0.007126, allocations: 104.3 kB / 15.74 MB, free: 6.445 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.001519/0.001519, allocations: 193.4 kB / 16.67 MB, free: 6.355 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.476/2.476, allocations: 390.2 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 64 kB / 0.9509 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3132, allocations: 140.4 MB / 1.088 GB, free: 1.473 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.00181/0.315, allocations: 0.704 MB / 1.089 GB, free: 0.7695 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001573/0.3166, allocations: 1.274 MB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.986e-05/0.3167, allocations: 0 / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.331e-05/0.3167, allocations: 7.875 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.161e-05/0.3168, allocations: 19.86 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00078/0.3176, allocations: 312.8 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003041/0.3179, allocations: 275.6 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.318, allocations: 20.17 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.3182, allocations: 99.86 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001628/0.3183, allocations: 91.73 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.829e-05/0.3184, allocations: 20 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.457e-05/0.3185, allocations: 39.98 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.434e-05/0.3185, allocations: 15.92 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.3186, allocations: 87.73 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002707/0.3189, allocations: 219.4 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3189, allocations: 0 / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.273e-06/0.3189, allocations: 4 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.177e-06/0.319, allocations: 0 / 1.091 GB, free: 14.3 MB / 0.8575 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.0006597/0.3196, allocations: 0.4885 MB / 1.092 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.3197, allocations: 8.031 kB / 1.092 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.598e-05/0.3197, allocations: 16.84 kB / 1.092 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.3199, allocations: 172.3 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.3199, allocations: 4.375 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.158e-05/0.32, allocations: 16.38 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001374/0.3201, allocations: 54.23 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.3201, allocations: 7.938 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.3201, allocations: 0 / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.3201, allocations: 0 / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.431e-05/0.3202, allocations: 27.92 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005478/0.3208, allocations: 420.5 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.081e-05/0.3208, allocations: 26.58 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.519e-05/0.3209, allocations: 24.88 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.169e-05/0.3209, allocations: 4 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001838/0.3211, allocations: 107.2 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.3211, allocations: 0 / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0003001/0.3214, allocations: 141.5 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/0.3215, allocations: 51.41 kB / 1.093 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.3216, allocations: 132.1 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.275e-05/0.3216, allocations: 33.7 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.7e-05/0.3217, allocations: 108 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.3217, allocations: 23.81 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.3219, allocations: 65.67 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.322, allocations: 326.8 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001919/0.3222, allocations: 83.95 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.3224, allocations: 147.5 kB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002816/0.3227, allocations: 234.9 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.3227, allocations: 8 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005851/0.3233, allocations: 378.5 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.171e-05/0.3234, allocations: 101 kB / 1.094 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.3234, allocations: 4 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.3234, allocations: 0 / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.796e-05/0.3234, allocations: 7.984 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.3235, allocations: 4 kB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004329/0.3239, allocations: 80 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.73e-05/0.324, allocations: 19.98 kB / 1.094 GB, free: 10.7 MB / 0.8575 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.0001245/0.3241, allocations: 134.9 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.631e-05/0.3241, allocations: 7.906 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.144e-05/0.3241, allocations: 16.36 kB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.3242, allocations: 4 kB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.3242, allocations: 384 / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3242, allocations: 0 / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00015/0.3243, allocations: 193.5 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3243, allocations: 0 / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.131e-05/0.3244, allocations: 7.922 kB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.3244, allocations: 4 kB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.3244, allocations: 4 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3244, allocations: 0 / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3244, allocations: 0 / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001901/0.3246, allocations: 144.9 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.595e-05/0.3246, allocations: 85.02 kB / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.3247, allocations: 0 / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.463e-05/0.3247, allocations: 4 kB / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.919e-05/0.3247, allocations: 7.984 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.3247, allocations: 4 kB / 1.095 GB, free: 9.996 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.69e-05/0.3248, allocations: 102.5 kB / 1.095 GB, free: 9.898 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3248, allocations: 4 kB / 1.095 GB, free: 9.895 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002594/0.3251, allocations: 47.98 kB / 1.095 GB, free: 9.848 MB / 0.8575 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.0001583/0.3253, allocations: 103.2 kB / 1.095 GB, free: 9.738 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004781/0.3257, allocations: 362 kB / 1.095 GB, free: 9.348 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.3258, allocations: 0 / 1.095 GB, free: 9.348 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.671e-05/0.3258, allocations: 47.86 kB / 1.095 GB, free: 9.301 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002534/0.3261, allocations: 31.05 kB / 1.095 GB, free: 9.273 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003834/0.3265, allocations: 183 kB / 1.096 GB, free: 9.062 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.3268, allocations: 0.6962 MB / 1.096 GB, free: 8.34 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.356e-05/0.3268, allocations: 8.422 kB / 1.096 GB, free: 8.332 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.466e-05/0.3268, allocations: 19.44 kB / 1.096 GB, free: 8.312 MB / 0.8575 GB Notification: Performance of SimCode: time 3.51e-07/0.3269, allocations: 4 kB / 1.096 GB, free: 8.309 MB / 0.8575 GB Notification: Performance of Templates: time 0.007142/0.334, allocations: 2.621 MB / 1.099 GB, free: 5.715 MB / 0.8575 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/jenkins/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