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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 80.3 kB / 19.18 MB, free: 2.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 161.4 kB / 22.45 MB, free: 5.375 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.516/1.516, allocations: 177.1 MB / 202.8 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.987/2.987, allocations: 389 MB / 0.633 GB, free: 1.016 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.116e-06/3.116e-06, allocations: 0 / 1 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.566e-05/3.877e-05, allocations: 2.281 kB / 1 GB, free: 7.297 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001941/0.001979, allocations: 0.6928 MB / 1.001 GB, free: 6.609 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002042/0.004021, allocations: 1.287 MB / 1.002 GB, free: 5.309 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.876e-05/0.00408, allocations: 0 / 1.002 GB, free: 5.309 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.943e-05/0.00412, allocations: 7.938 kB / 1.002 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 9.128e-05/0.004211, allocations: 23.84 kB / 1.002 GB, free: 5.277 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009021/0.005113, allocations: 313.8 kB / 1.002 GB, free: 4.98 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003646/0.005478, allocations: 259.5 kB / 1.003 GB, free: 4.727 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.005595, allocations: 16.19 kB / 1.003 GB, free: 4.707 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002331/0.005828, allocations: 143.8 kB / 1.003 GB, free: 4.566 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001867/0.006015, allocations: 79.8 kB / 1.003 GB, free: 4.488 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.914e-05/0.006064, allocations: 20 kB / 1.003 GB, free: 4.469 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 9.835e-05/0.006162, allocations: 31.98 kB / 1.003 GB, free: 4.438 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.996e-05/0.006192, allocations: 12 kB / 1.003 GB, free: 4.426 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001303/0.006322, allocations: 75.86 kB / 1.003 GB, free: 4.352 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003866/0.006709, allocations: 271.3 kB / 1.003 GB, free: 4.086 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.006713, allocations: 0 / 1.003 GB, free: 4.086 MB / 0.9512 GB Notification: Performance of FrontEnd: time 9.32e-07/0.006714, allocations: 0 / 1.003 GB, free: 4.086 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.151e-05/0.006725, allocations: 0 / 1.003 GB, free: 4.086 MB / 0.9512 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.0007297/0.007455, allocations: 427.1 kB / 1.004 GB, free: 3.621 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.007499, allocations: 12.03 kB / 1.004 GB, free: 3.609 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.832e-05/0.007577, allocations: 16.88 kB / 1.004 GB, free: 3.594 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001339/0.007711, allocations: 113.8 kB / 1.004 GB, free: 3.457 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.644e-05/0.007737, allocations: 4.375 kB / 1.004 GB, free: 3.453 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.731e-05/0.007794, allocations: 16.38 kB / 1.004 GB, free: 3.438 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00014/0.007934, allocations: 54.23 kB / 1.004 GB, free: 3.379 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.007946, allocations: 4.125 kB / 1.004 GB, free: 3.375 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.00796, allocations: 8.359 kB / 1.004 GB, free: 3.367 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.007967, allocations: 8.062 kB / 1.004 GB, free: 3.359 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.561e-05/0.008022, allocations: 20 kB / 1.004 GB, free: 3.34 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005754/0.008598, allocations: 316.3 kB / 1.004 GB, free: 3 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 8.788e-05/0.008686, allocations: 34.5 kB / 1.004 GB, free: 2.957 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.243e-05/0.008728, allocations: 20.8 kB / 1.004 GB, free: 2.934 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 7.394e-06/0.008735, allocations: 0 / 1.004 GB, free: 2.934 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002214/0.008957, allocations: 107.4 kB / 1.004 GB, free: 2.816 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.008958, allocations: 0 / 1.004 GB, free: 2.816 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10): time 0.0003604/0.009319, allocations: 137.5 kB / 1.005 GB, free: 2.676 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.337e-05/0.009372, allocations: 59.41 kB / 1.005 GB, free: 2.605 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001485/0.00952, allocations: 133.8 kB / 1.005 GB, free: 2.465 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.154e-05/0.009572, allocations: 37.69 kB / 1.005 GB, free: 2.422 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.673e-05/0.009669, allocations: 100.1 kB / 1.005 GB, free: 2.32 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.365e-05/0.009692, allocations: 15.91 kB / 1.005 GB, free: 2.305 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.009838, allocations: 65.67 kB / 1.005 GB, free: 2.234 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001682/0.01001, allocations: 322.8 kB / 1.005 GB, free: 1.91 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002949/0.0103, allocations: 181 kB / 1.005 GB, free: 1.715 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003129/0.01061, allocations: 231 kB / 1.006 GB, free: 1.449 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000334/0.01095, allocations: 234.5 kB / 1.006 GB, free: 1.184 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.01095, allocations: 4 kB / 1.006 GB, free: 1.18 MB / 0.9512 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007564/0.01171, allocations: 483.4 kB / 1.006 GB, free: 0.6641 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 8.918e-05/0.0118, allocations: 97.09 kB / 1.006 GB, free: 0.5508 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.01181, allocations: 0 / 1.006 GB, free: 0.5508 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.01183, allocations: 4 kB / 1.006 GB, free: 0.5469 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.976e-05/0.01186, allocations: 8.172 kB / 1.006 GB, free: 0.5391 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.01186, allocations: 4 kB / 1.006 GB, free: 0.5352 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005149/0.01238, allocations: 80.22 kB / 1.006 GB, free: 468 kB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.711e-05/0.01243, allocations: 15.98 kB / 1.007 GB, free: 452 kB / 0.9512 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.0001497/0.01258, allocations: 130.3 kB / 1.007 GB, free: 312 kB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.096e-05/0.0126, allocations: 19.84 kB / 1.007 GB, free: 292 kB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.103e-05/0.01263, allocations: 20.36 kB / 1.007 GB, free: 272 kB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.01263, allocations: 0 / 1.007 GB, free: 272 kB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.01264, allocations: 0 / 1.007 GB, free: 272 kB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.01264, allocations: 0 / 1.007 GB, free: 272 kB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001471/0.01279, allocations: 133.2 kB / 1.007 GB, free: 108 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.01279, allocations: 0 / 1.007 GB, free: 108 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.504e-05/0.0128, allocations: 8 kB / 1.007 GB, free: 100 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.603e-06/0.01281, allocations: 7.922 kB / 1.007 GB, free: 92 kB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.016e-06/0.01282, allocations: 0 / 1.007 GB, free: 92 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.01282, allocations: 3.938 kB / 1.007 GB, free: 88 kB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.01283, allocations: 11.94 kB / 1.007 GB, free: 76 kB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002246/0.01305, allocations: 133 kB / 1.007 GB, free: 15.93 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 1.31e-05/0.01306, allocations: 7.953 kB / 1.007 GB, free: 15.92 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.436e-05/0.01309, allocations: 7.938 kB / 1.007 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.523e-05/0.01311, allocations: 7.922 kB / 1.007 GB, free: 15.9 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.015e-05/0.01316, allocations: 11.98 kB / 1.007 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.01317, allocations: 4 kB / 1.007 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.331e-05/0.01324, allocations: 97.94 kB / 1.007 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of sort global known variables: time 6e-08/0.01325, allocations: 0 / 1.007 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002712/0.01352, allocations: 44 kB / 1.007 GB, free: 15.75 MB / 0.9669 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.0001857/0.0137, allocations: 103.2 kB / 1.007 GB, free: 15.64 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0006052/0.01431, allocations: 415.1 kB / 1.008 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.01431, allocations: 4 kB / 1.008 GB, free: 15.17 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 6.951e-05/0.01438, allocations: 31.98 kB / 1.008 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002802/0.01466, allocations: 21.95 kB / 1.008 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004408/0.0151, allocations: 197.7 kB / 1.008 GB, free: 14.9 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.584e-05/0.01518, allocations: 75.89 kB / 1.008 GB, free: 14.8 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.02e-05/0.01521, allocations: 8.5 kB / 1.008 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.159e-05/0.01524, allocations: 16.48 kB / 1.008 GB, free: 14.78 MB / 0.9669 GB Notification: Performance of SimCode: time 4.01e-07/0.01524, allocations: 0 / 1.008 GB, free: 14.78 MB / 0.9669 GB Notification: Performance of Templates: time 0.006827/0.02206, allocations: 2.902 MB / 1.011 GB, free: 11.94 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 800] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.536355927586555]