Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.002672/0.002672, allocations: 79.7 kB / 20.23 MB, free: 4.191 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.002988/0.002988, allocations: 157.3 kB / 23.55 MB, free: 0.875 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 1.581/1.581, allocations: 177.1 MB / 203.9 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.905/2.905, allocations: 359 MB / 0.6048 GB, free: 10.95 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_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_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.385e-06/2.385e-06, allocations: 0.6562 kB / 0.7864 GB, free: 12.8 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.896e-05/3.134e-05, allocations: 5.266 kB / 0.7864 GB, free: 12.79 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002205/0.002236, allocations: 0.6993 MB / 0.7871 GB, free: 12.11 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001904/0.004141, allocations: 1.297 MB / 0.7883 GB, free: 10.8 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.458e-05/0.004185, allocations: 0 / 0.7883 GB, free: 10.8 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 3.273e-05/0.004218, allocations: 12.48 kB / 0.7884 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 9.16e-05/0.00431, allocations: 21.08 kB / 0.7884 GB, free: 10.77 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008074/0.005117, allocations: 297.9 kB / 0.7887 GB, free: 10.48 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0003697/0.005487, allocations: 259.5 kB / 0.7889 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 8.814e-05/0.005575, allocations: 12.17 kB / 0.7889 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.005801, allocations: 139.8 kB / 0.7891 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001847/0.005986, allocations: 81.36 kB / 0.7891 GB, free: 9.996 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 6.051e-05/0.006046, allocations: 20 kB / 0.7891 GB, free: 9.977 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 9.684e-05/0.006143, allocations: 35.98 kB / 0.7892 GB, free: 9.941 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 3.065e-05/0.006174, allocations: 19.86 kB / 0.7892 GB, free: 9.922 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.0063, allocations: 76.47 kB / 0.7893 GB, free: 9.848 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0003925/0.006692, allocations: 264.1 kB / 0.7895 GB, free: 9.59 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.006695, allocations: 3.938 kB / 0.7895 GB, free: 9.586 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.31e-07/0.006696, allocations: 0.9062 kB / 0.7895 GB, free: 9.586 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.006701, allocations: 0 / 0.7895 GB, free: 9.586 MB / 0.7448 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.0006952/0.007396, allocations: 0.5166 MB / 0.79 GB, free: 9.016 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.007434, allocations: 9.906 kB / 0.79 GB, free: 9.008 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.535e-05/0.007509, allocations: 16.89 kB / 0.7901 GB, free: 8.992 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.007637, allocations: 116.6 kB / 0.7902 GB, free: 8.852 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.544e-05/0.007662, allocations: 8.375 kB / 0.7902 GB, free: 8.844 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.761e-05/0.00771, allocations: 20.36 kB / 0.7902 GB, free: 8.824 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.007839, allocations: 59.7 kB / 0.7903 GB, free: 8.762 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.007848, allocations: 192 / 0.7903 GB, free: 8.762 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.007857, allocations: 384 / 0.7903 GB, free: 8.762 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.007868, allocations: 8.125 kB / 0.7903 GB, free: 8.754 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.996e-05/0.007928, allocations: 21.02 kB / 0.7903 GB, free: 8.734 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006358/0.008564, allocations: 383.5 kB / 0.7906 GB, free: 8.324 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 8.53e-05/0.008649, allocations: 39.69 kB / 0.7907 GB, free: 8.273 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.578e-05/0.008695, allocations: 23.77 kB / 0.7907 GB, free: 8.246 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.082e-05/0.008706, allocations: 2.562 kB / 0.7907 GB, free: 8.246 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001816/0.008888, allocations: 108.9 kB / 0.7908 GB, free: 8.125 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=10): time 1.202e-06/0.008889, allocations: 0 / 0.7908 GB, free: 8.125 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10): time 0.0003556/0.009244, allocations: 149.5 kB / 0.791 GB, free: 7.973 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.009301, allocations: 59.34 kB / 0.791 GB, free: 7.902 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.00948, allocations: 200.8 kB / 0.7912 GB, free: 7.691 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.733e-05/0.009528, allocations: 38.23 kB / 0.7912 GB, free: 7.648 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.009649, allocations: 142.9 kB / 0.7914 GB, free: 7.504 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.035e-05/0.009679, allocations: 24.64 kB / 0.7914 GB, free: 7.48 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.00983, allocations: 79.33 kB / 0.7915 GB, free: 7.395 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002865/0.01012, allocations: 0.4928 MB / 0.792 GB, free: 6.891 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003308/0.01045, allocations: 202.7 kB / 0.7922 GB, free: 6.676 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003815/0.01083, allocations: 274.8 kB / 0.7924 GB, free: 6.359 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000394/0.01122, allocations: 274.5 kB / 0.7927 GB, free: 6.047 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.01123, allocations: 0.75 kB / 0.7927 GB, free: 6.047 MB / 0.7448 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008541/0.01208, allocations: 0.5137 MB / 0.7932 GB, free: 5.492 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001066/0.01219, allocations: 101.1 kB / 0.7933 GB, free: 5.375 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.01219, allocations: 3.938 kB / 0.7933 GB, free: 5.371 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.01221, allocations: 4 kB / 0.7933 GB, free: 5.367 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.544e-05/0.01223, allocations: 8.938 kB / 0.7933 GB, free: 5.359 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.01224, allocations: 4.062 kB / 0.7933 GB, free: 5.355 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003974/0.01264, allocations: 61.56 kB / 0.7934 GB, free: 5.297 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002697/0.01291, allocations: 23.97 kB / 0.7934 GB, free: 5.273 MB / 0.7448 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.0001578/0.01307, allocations: 173.4 kB / 0.7935 GB, free: 5.094 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.06e-05/0.0131, allocations: 21.42 kB / 0.7936 GB, free: 5.074 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.687e-05/0.01314, allocations: 8.438 kB / 0.7936 GB, free: 5.07 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.01314, allocations: 4 kB / 0.7936 GB, free: 5.066 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.01315, allocations: 0 / 0.7936 GB, free: 5.066 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.01315, allocations: 1 kB / 0.7936 GB, free: 5.066 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001775/0.01333, allocations: 156.4 kB / 0.7937 GB, free: 4.879 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.01333, allocations: 2.062 kB / 0.7937 GB, free: 4.879 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.504e-05/0.01334, allocations: 7.984 kB / 0.7937 GB, free: 4.871 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.01335, allocations: 3.938 kB / 0.7937 GB, free: 4.867 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.01336, allocations: 0 / 0.7937 GB, free: 4.867 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.01336, allocations: 0 / 0.7937 GB, free: 4.867 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.01336, allocations: 0 / 0.7937 GB, free: 4.867 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002475/0.0136, allocations: 162.6 kB / 0.7939 GB, free: 4.688 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.422e-05/0.01362, allocations: 11.94 kB / 0.7939 GB, free: 4.676 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.141e-05/0.01364, allocations: 7.938 kB / 0.7939 GB, free: 4.668 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.247e-05/0.01366, allocations: 0 / 0.7939 GB, free: 4.668 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.229e-05/0.01371, allocations: 11.98 kB / 0.7939 GB, free: 4.656 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/0.01371, allocations: 4 kB / 0.7939 GB, free: 4.652 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001088/0.01382, allocations: 147.7 kB / 0.7941 GB, free: 4.508 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.01382, allocations: 0 / 0.7941 GB, free: 4.508 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002763/0.0141, allocations: 40.53 kB / 0.7941 GB, free: 4.469 MB / 0.7448 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.0001728/0.01427, allocations: 103 kB / 0.7942 GB, free: 4.359 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0006733/0.01495, allocations: 499.9 kB / 0.7947 GB, free: 3.812 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.01495, allocations: 0 / 0.7947 GB, free: 3.812 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 9.207e-05/0.01504, allocations: 43.61 kB / 0.7947 GB, free: 3.766 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002647/0.0153, allocations: 22.58 kB / 0.7947 GB, free: 3.746 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004314/0.01574, allocations: 202.8 kB / 0.7949 GB, free: 3.516 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.664e-05/0.01582, allocations: 86.52 kB / 0.795 GB, free: 3.414 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.978e-05/0.01586, allocations: 16.42 kB / 0.795 GB, free: 3.398 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.905e-05/0.01589, allocations: 12.5 kB / 0.795 GB, free: 3.387 MB / 0.7448 GB Notification: Performance of SimCode: time 4.71e-07/0.01589, allocations: 0 / 0.795 GB, free: 3.387 MB / 0.7448 GB Notification: Performance of Templates: time 0.006977/0.02287, allocations: 2.929 MB / 0.7979 GB, free: 0.5469 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.06592023500707]