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.0007935/0.0007935, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0008069/0.0008069, allocations: 177.9 kB / 23.21 MB, free: 1.348 MB / 18.57 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 0.9015/0.9015, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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 1.781/1.781, allocations: 389 MB / 0.6338 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] 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 2.965e-06/2.965e-06, allocations: 0 / 1.001 GB, free: 12.99 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.797e-05/3.094e-05, allocations: 2.281 kB / 1.001 GB, free: 12.98 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001409/0.00144, allocations: 0.6827 MB / 1.002 GB, free: 12.3 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001496/0.002936, allocations: 1.291 MB / 1.003 GB, free: 11 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.875e-05/0.002985, allocations: 4 kB / 1.003 GB, free: 11 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.163e-05/0.003016, allocations: 7.875 kB / 1.003 GB, free: 10.99 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.242e-05/0.003089, allocations: 11.92 kB / 1.003 GB, free: 10.98 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005864/0.003675, allocations: 310.3 kB / 1.003 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002191/0.003894, allocations: 255.5 kB / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.003996, allocations: 16.16 kB / 1.003 GB, free: 10.41 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.004134, allocations: 139.8 kB / 1.004 GB, free: 10.28 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001284/0.004262, allocations: 83.8 kB / 1.004 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.315e-05/0.004295, allocations: 24 kB / 1.004 GB, free: 10.17 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.164e-05/0.004357, allocations: 31.94 kB / 1.004 GB, free: 10.14 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.408e-05/0.004381, allocations: 11.98 kB / 1.004 GB, free: 10.13 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 7.721e-05/0.004458, allocations: 79.86 kB / 1.004 GB, free: 10.05 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002513/0.004709, allocations: 267.3 kB / 1.004 GB, free: 9.789 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.004712, allocations: 4 kB / 1.004 GB, free: 9.785 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.373e-06/0.004714, allocations: 0 / 1.004 GB, free: 9.785 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.004719, allocations: 0 / 1.004 GB, free: 9.785 MB / 0.9636 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.0004714/0.00519, allocations: 425.5 kB / 1.004 GB, free: 9.324 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.005228, allocations: 13.34 kB / 1.004 GB, free: 9.312 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.059e-05/0.005289, allocations: 16.89 kB / 1.004 GB, free: 9.297 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.106e-05/0.00537, allocations: 113.8 kB / 1.005 GB, free: 9.16 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.005395, allocations: 16.36 kB / 1.005 GB, free: 9.145 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.646e-05/0.005421, allocations: 12.38 kB / 1.005 GB, free: 9.133 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.005527, allocations: 58.17 kB / 1.005 GB, free: 9.07 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.005535, allocations: 192 / 1.005 GB, free: 9.07 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.005546, allocations: 4.375 kB / 1.005 GB, free: 9.066 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.005551, allocations: 4.125 kB / 1.005 GB, free: 9.062 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.279e-05/0.005594, allocations: 23.98 kB / 1.005 GB, free: 9.039 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004019/0.005996, allocations: 320.3 kB / 1.005 GB, free: 8.695 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 6.059e-05/0.006056, allocations: 38.45 kB / 1.005 GB, free: 8.648 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.655e-05/0.006083, allocations: 16.94 kB / 1.005 GB, free: 8.629 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 9.979e-06/0.006093, allocations: 4 kB / 1.005 GB, free: 8.625 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001699/0.006263, allocations: 103.2 kB / 1.005 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.006264, allocations: 0 / 1.005 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of matching and sorting (n=10): time 0.0002552/0.006519, allocations: 141.5 kB / 1.005 GB, free: 8.367 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/0.006553, allocations: 55.41 kB / 1.005 GB, free: 8.301 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.155e-05/0.006635, allocations: 136.5 kB / 1.005 GB, free: 8.16 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.006665, allocations: 37.7 kB / 1.006 GB, free: 8.117 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.4e-05/0.006719, allocations: 100.1 kB / 1.006 GB, free: 8.016 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.006736, allocations: 27.95 kB / 1.006 GB, free: 7.988 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.86e-05/0.006815, allocations: 65.67 kB / 1.006 GB, free: 7.918 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.623e-05/0.006891, allocations: 318.8 kB / 1.006 GB, free: 7.598 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.007063, allocations: 181 kB / 1.006 GB, free: 7.402 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.007236, allocations: 219.1 kB / 1.006 GB, free: 7.148 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001876/0.007423, allocations: 243 kB / 1.007 GB, free: 6.871 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.007426, allocations: 3.938 kB / 1.007 GB, free: 6.867 MB / 0.9636 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004286/0.007855, allocations: 475.5 kB / 1.007 GB, free: 6.359 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 5.3e-05/0.007908, allocations: 101.1 kB / 1.007 GB, free: 6.242 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.007914, allocations: 4 kB / 1.007 GB, free: 6.238 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.007928, allocations: 0 / 1.007 GB, free: 6.238 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.064e-05/0.007949, allocations: 4 kB / 1.007 GB, free: 6.234 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.007959, allocations: 7.938 kB / 1.007 GB, free: 6.227 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002646/0.008224, allocations: 84.03 kB / 1.007 GB, free: 6.145 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.545e-05/0.008249, allocations: 15.98 kB / 1.007 GB, free: 6.129 MB / 0.9636 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.113e-05/0.00834, allocations: 131.7 kB / 1.007 GB, free: 5.992 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.343e-05/0.008354, allocations: 15.84 kB / 1.007 GB, free: 5.977 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.477e-05/0.008378, allocations: 8.438 kB / 1.007 GB, free: 5.969 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.008382, allocations: 8 kB / 1.007 GB, free: 5.961 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.008387, allocations: 0 / 1.007 GB, free: 5.961 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.008391, allocations: 3.984 kB / 1.007 GB, free: 5.957 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.785e-05/0.008478, allocations: 133.2 kB / 1.008 GB, free: 5.797 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.00848, allocations: 0 / 1.008 GB, free: 5.797 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.123e-06/0.008487, allocations: 3.938 kB / 1.008 GB, free: 5.793 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.00849, allocations: 4.312 kB / 1.008 GB, free: 5.789 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.0085, allocations: 11.98 kB / 1.008 GB, free: 5.777 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.008503, allocations: 7.938 kB / 1.008 GB, free: 5.77 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.008504, allocations: 0 / 1.008 GB, free: 5.77 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001344/0.008638, allocations: 140.9 kB / 1.008 GB, free: 5.613 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.045e-05/0.008649, allocations: 11.94 kB / 1.008 GB, free: 5.602 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.008662, allocations: 7.938 kB / 1.008 GB, free: 5.594 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.79e-05/0.00868, allocations: 4 kB / 1.008 GB, free: 5.59 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.277e-05/0.008713, allocations: 7.984 kB / 1.008 GB, free: 5.582 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.151e-06/0.008719, allocations: 4 kB / 1.008 GB, free: 5.578 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.927e-05/0.008758, allocations: 95.27 kB / 1.008 GB, free: 5.484 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.008758, allocations: 4 kB / 1.008 GB, free: 5.48 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001823/0.008941, allocations: 43.98 kB / 1.008 GB, free: 5.438 MB / 0.9636 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.0001456/0.009086, allocations: 103.2 kB / 1.008 GB, free: 5.324 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003513/0.009438, allocations: 415.1 kB / 1.008 GB, free: 4.863 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.00944, allocations: 0 / 1.008 GB, free: 4.863 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 4.588e-05/0.009486, allocations: 31.98 kB / 1.008 GB, free: 4.832 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002023/0.009688, allocations: 23.92 kB / 1.008 GB, free: 4.809 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003354/0.01002, allocations: 219.8 kB / 1.009 GB, free: 4.559 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.154e-05/0.01007, allocations: 84.16 kB / 1.009 GB, free: 4.453 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.088e-05/0.0101, allocations: 12.5 kB / 1.009 GB, free: 4.441 MB / 0.9636 GB Notification: Performance of SimCode: time 8.22e-07/0.0101, allocations: 4 kB / 1.009 GB, free: 4.438 MB / 0.9636 GB Notification: Performance of Templates: time 0.002807/0.0129, allocations: 1.898 MB / 1.011 GB, free: 2.559 MB / 0.9636 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: 6.625825286842883]