Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00167/0.00167, allocations: 76.5 kB / 19.93 MB, free: 4.621 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.001769/0.001769, allocations: 177.9 kB / 23.21 MB, free: 1.344 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.9097/0.9097, allocations: 177.2 MB / 203.5 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.757/1.757, allocations: 377.8 MB / 0.6228 GB, free: 8.688 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_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_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.745e-06/2.745e-06, allocations: 0 / 0.9822 GB, free: 2.086 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.782e-05/3.057e-05, allocations: 2.281 kB / 0.9822 GB, free: 2.082 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001332/0.001363, allocations: 0.6866 MB / 0.9829 GB, free: 1.398 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001248/0.002611, allocations: 1.287 MB / 0.9841 GB, free: 100 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.057e-05/0.002662, allocations: 0 / 0.9841 GB, free: 100 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.97e-05/0.002691, allocations: 7.922 kB / 0.9841 GB, free: 92 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 7.265e-05/0.002764, allocations: 15.86 kB / 0.9842 GB, free: 76 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005878/0.003352, allocations: 321 kB / 0.9845 GB, free: 15.77 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0002278/0.00358, allocations: 259.5 kB / 0.9847 GB, free: 15.52 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 9.676e-05/0.003676, allocations: 12.17 kB / 0.9847 GB, free: 15.5 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.003809, allocations: 135.8 kB / 0.9849 GB, free: 15.37 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001229/0.003932, allocations: 79.8 kB / 0.9849 GB, free: 15.29 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 3.177e-05/0.003964, allocations: 27.94 kB / 0.985 GB, free: 15.26 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.351e-05/0.004027, allocations: 31.98 kB / 0.985 GB, free: 15.23 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 2.837e-05/0.004056, allocations: 15.92 kB / 0.985 GB, free: 15.21 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 7.119e-05/0.004127, allocations: 75.94 kB / 0.9851 GB, free: 15.14 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002509/0.004378, allocations: 271.3 kB / 0.9853 GB, free: 14.88 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.00438, allocations: 0 / 0.9853 GB, free: 14.88 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.092e-06/0.004381, allocations: 0 / 0.9853 GB, free: 14.88 MB / 0.948 GB Notification: Performance of Transformations before backend: time 3.787e-06/0.004385, allocations: 0 / 0.9853 GB, free: 14.88 MB / 0.948 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.0004487/0.004833, allocations: 429.7 kB / 0.9857 GB, free: 14.41 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.00487, allocations: 8.031 kB / 0.9857 GB, free: 14.4 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.33e-05/0.004923, allocations: 16.89 kB / 0.9858 GB, free: 14.39 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.634e-05/0.00501, allocations: 121.7 kB / 0.9859 GB, free: 14.24 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.005038, allocations: 8.375 kB / 0.9859 GB, free: 14.23 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.622e-05/0.005064, allocations: 12.38 kB / 0.9859 GB, free: 14.22 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001059/0.00517, allocations: 66.22 kB / 0.986 GB, free: 14.15 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.005177, allocations: 192 / 0.986 GB, free: 14.15 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.005189, allocations: 8.312 kB / 0.986 GB, free: 14.14 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.005194, allocations: 4.125 kB / 0.986 GB, free: 14.14 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.289e-05/0.005237, allocations: 27.92 kB / 0.986 GB, free: 14.11 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003808/0.005617, allocations: 308.4 kB / 0.9863 GB, free: 13.78 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 5.266e-05/0.00567, allocations: 30.56 kB / 0.9863 GB, free: 13.74 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.709e-05/0.005697, allocations: 20.94 kB / 0.9863 GB, free: 13.72 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 8.557e-06/0.005706, allocations: 0 / 0.9863 GB, free: 13.72 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001352/0.005841, allocations: 111.2 kB / 0.9865 GB, free: 13.6 MB / 0.948 GB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.005842, allocations: 4 kB / 0.9865 GB, free: 13.59 MB / 0.948 GB Notification: Performance of matching and sorting (n=10): time 0.000249/0.006091, allocations: 137.5 kB / 0.9866 GB, free: 13.45 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/0.006129, allocations: 59.39 kB / 0.9866 GB, free: 13.38 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.501e-05/0.006214, allocations: 136.9 kB / 0.9868 GB, free: 13.24 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.006242, allocations: 34.08 kB / 0.9868 GB, free: 13.2 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.556e-05/0.006297, allocations: 92.14 kB / 0.9869 GB, free: 13.11 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.006319, allocations: 27.84 kB / 0.9869 GB, free: 13.08 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.222e-05/0.006401, allocations: 65.67 kB / 0.987 GB, free: 13.01 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0002983/0.006699, allocations: 322.8 kB / 0.9873 GB, free: 12.69 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/0.006872, allocations: 185 kB / 0.9875 GB, free: 12.49 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.00705, allocations: 227 kB / 0.9877 GB, free: 12.23 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00019/0.00724, allocations: 239 kB / 0.9879 GB, free: 11.95 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.007244, allocations: 0 / 0.9879 GB, free: 11.95 MB / 0.948 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004205/0.007664, allocations: 478.6 kB / 0.9884 GB, free: 11.45 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.432e-05/0.007718, allocations: 105.1 kB / 0.9885 GB, free: 11.32 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.007723, allocations: 0 / 0.9885 GB, free: 11.32 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.007736, allocations: 4 kB / 0.9885 GB, free: 11.32 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.733e-05/0.007753, allocations: 0 / 0.9885 GB, free: 11.32 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.00776, allocations: 4 kB / 0.9885 GB, free: 11.32 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002573/0.008017, allocations: 87.86 kB / 0.9886 GB, free: 11.23 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.511e-05/0.008043, allocations: 15.98 kB / 0.9886 GB, free: 11.21 MB / 0.948 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 8.282e-05/0.008125, allocations: 131.8 kB / 0.9887 GB, free: 11.08 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/0.008138, allocations: 15.88 kB / 0.9887 GB, free: 11.06 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.529e-05/0.008164, allocations: 12.44 kB / 0.9887 GB, free: 11.05 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.008166, allocations: 0 / 0.9887 GB, free: 11.05 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.008171, allocations: 0 / 0.9887 GB, free: 11.05 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.008174, allocations: 0 / 0.9887 GB, free: 11.05 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.044e-05/0.008255, allocations: 129.3 kB / 0.9888 GB, free: 10.89 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.008256, allocations: 7.938 kB / 0.9889 GB, free: 10.89 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.47e-06/0.008261, allocations: 3.984 kB / 0.9889 GB, free: 10.88 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.008263, allocations: 7.938 kB / 0.9889 GB, free: 10.88 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.692e-06/0.00827, allocations: 0 / 0.9889 GB, free: 10.88 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.008272, allocations: 3.984 kB / 0.9889 GB, free: 10.87 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.008273, allocations: 0 / 0.9889 GB, free: 10.87 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001288/0.008402, allocations: 141 kB / 0.989 GB, free: 10.71 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.025e-05/0.008412, allocations: 15.91 kB / 0.989 GB, free: 10.7 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.349e-05/0.008425, allocations: 7.922 kB / 0.989 GB, free: 10.69 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.446e-05/0.00844, allocations: 4 kB / 0.989 GB, free: 10.69 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.291e-05/0.008473, allocations: 11.92 kB / 0.989 GB, free: 10.68 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.008479, allocations: 8 kB / 0.9891 GB, free: 10.67 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.018e-05/0.008519, allocations: 103.2 kB / 0.9892 GB, free: 10.57 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.008519, allocations: 0 / 0.9892 GB, free: 10.57 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001694/0.008688, allocations: 44.09 kB / 0.9892 GB, free: 10.52 MB / 0.948 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.0001142/0.008803, allocations: 103.2 kB / 0.9893 GB, free: 10.41 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0003458/0.009148, allocations: 419.2 kB / 0.9897 GB, free: 9.949 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.00915, allocations: 0 / 0.9897 GB, free: 9.949 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.645e-05/0.009196, allocations: 32.36 kB / 0.9897 GB, free: 9.918 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001897/0.009386, allocations: 31.09 kB / 0.9898 GB, free: 9.891 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000311/0.009697, allocations: 215.4 kB / 0.99 GB, free: 9.645 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.44e-05/0.009751, allocations: 79.89 kB / 0.99 GB, free: 9.543 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.073e-05/0.009772, allocations: 12.5 kB / 0.99 GB, free: 9.531 MB / 0.948 GB Notification: Performance of SimCode: time 4.01e-07/0.009773, allocations: 4 kB / 0.99 GB, free: 9.527 MB / 0.948 GB Notification: Performance of Templates: time 0.002459/0.01223, allocations: 1.901 MB / 0.9919 GB, free: 7.645 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.901471673510969]